IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid
Class TransactionTimeoutException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.ibm.websphere.objectgrid.ObjectGridRuntimeException
                  extended by com.ibm.websphere.objectgrid.TransactionTimeoutException
All Implemented Interfaces:
IObjectGridException, Serializable

public class TransactionTimeoutException
extends ObjectGridRuntimeException

This exception is thrown when a transaction exceeds the transaction timeout that was specified on the ObjectGrid or Session.

Since:
WAS XD 6.0.1, XC10
See Also:
ObjectGrid.setTxTimeout(int), Session.setTransactionTimeout(int), Serialized Form

Constructor Summary
TransactionTimeoutException(String message, String txIdString)
          Constructs a new TransactionTimeoutException with the specified detail message.
TransactionTimeoutException(String message, Throwable cause)
           
 
Method Summary
 String getTxIDString()
          Get the String representation of the TxID for the transaction that timed out.
 Date whenOccurred()
          Gives the time when this TransactionTimeoutException was created.
 
Methods inherited from class com.ibm.websphere.objectgrid.ObjectGridRuntimeException
getCause, initCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionTimeoutException

public TransactionTimeoutException(String message,
                                   Throwable cause)

TransactionTimeoutException

public TransactionTimeoutException(String message,
                                   String txIdString)
Constructs a new TransactionTimeoutException with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to the initCause method.

Parameters:
message - the detail message. The detail message is saved for later retrieval by the getMessage method.
txIdString - the result of TxID.toString() for the transaction that timed out.
See Also:
ObjectGridRuntimeException.initCause(Throwable), Throwable.getMessage()
Method Detail

whenOccurred

public Date whenOccurred()
Gives the time when this TransactionTimeoutException was created.

Returns:
Date object that represents the instant in time when this exception object was created.

getTxIDString

public String getTxIDString()
Get the String representation of the TxID for the transaction that timed out.

Returns:
String value of TxID of transaction that timed out.

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.