public class TTransactionTimeoutParameters
extends java.lang.Object
Constructor and Description |
---|
TTransactionTimeoutParameters()
Initializes the transactional parameters, so that it starts in default mode for all tamino transaction modes.
|
Modifier and Type | Method and Description |
---|---|
long |
getMaximumTransactionDuration()
Gets the maximum transaction duration in seconds.
|
long |
getNonActivityTimeout()
Gets the nonActivity timeout.
|
boolean |
isGiven()
Indicates if the transaction timeout parameters are still in its inital state.
|
void |
reset()
Resets the current tranaction timeout parameters.
|
void |
setMaximumTransactionDuration(long maximumTransactionDuration)
Sets the maximum transaction duration in seconds.
|
void |
setNonActivityTimeout(long nonActivityTimeout)
Sets the nonActivity timeout.
|
java.lang.String |
toString()
Writes the current transaction timeout parameters to a String.
|
void |
writeTo(TCommandStatement commandStatement)
Writes the current imeout parameters to the given commandStatement.
|
protected void |
writeTo(TStreamHeader streamHeader)
Writes the current timeout parameters to the given stream header.
|
public TTransactionTimeoutParameters()
public void writeTo(TCommandStatement commandStatement)
commandStatement
- gets the current timeout parameters.protected void writeTo(TStreamHeader streamHeader)
streamHeader
- gets the current timeout parameters.public void setNonActivityTimeout(long nonActivityTimeout)
nonActivityTimeout
- the transaction nonActivity timeout be set,
TConnection.DEFAULT_TIMEOUT for Tamino default.public long getNonActivityTimeout()
public void setMaximumTransactionDuration(long maximumTransactionDuration)
maximumTransactionDuration
- the maximum transaction duration in seconds in seconds be set, TConnection.DEFAULT_TIMEOUT for Tamino default.public long getMaximumTransactionDuration()
public boolean isGiven()
public java.lang.String toString()
toString
in class java.lang.Object
public void reset()
Copyright (c) 2017 Software AG. All Rights Reserved.