public interface Transaction extends Serializable
This interface represents a generic transaction interface defining the methods common between client and server transactions.
TransactionState
Modifier and Type | Method and Description |
---|---|
Object |
getApplicationData()
Returns the application data associated with the transaction.This
specification does not define the format of this application specific
data.
|
String |
getBranchId()
Returns a unique branch identifer that identifies this transaction.
|
Dialog |
getDialog()
Gets the dialog object of this transaction object.
|
Request |
getRequest()
Returns the request that created this transaction.
|
int |
getRetransmitTimer()
Returns the current value of the retransmit timer in milliseconds used
to retransmit messages over unreliable transports for this transaction.
|
TransactionState |
getState()
Returns the current state of the transaction.
|
void |
setApplicationData(Object applicationData)
This method allows applications to associate application context with
the transaction.
|
void |
setRetransmitTimer(int retransmitTimer)
Sets the value of the retransmit timer to the newly supplied timer value.
|
void |
terminate()
Terminate this transaction and immediately release all stack resources
associated with it.
|
Dialog getDialog()
Dialog
TransactionState getState()
int getRetransmitTimer() throws UnsupportedOperationException
UnsupportedOperationException
- if this method is not supported
by the underlying implementation.void setRetransmitTimer(int retransmitTimer) throws UnsupportedOperationException
retransmitTimer
- - the new integer value of the retransmit timer
in milliseconds.UnsupportedOperationException
- if this method is not supported
by the underlying implementation.String getBranchId()
Request getRequest()
void setApplicationData(Object applicationData)
applicationData
- - un-interpreted application data.Object getApplicationData()
void terminate() throws ObjectInUseException
ObjectInUseException
- if the transaction cannot be terminated as
it is associated to a dialog.Copyright © 2017. All Rights Reserved.