public abstract class BrokerCommunication
extends java.lang.Object
Conversation
,
UnitofWork
Modifier and Type | Field and Description |
---|---|
protected BrokerService |
brokerService
The BrokerService object to which the Communication belongs.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Deprecated.
This method does nothing, since no reference to the
Conversation or UnitofWork object is held anymore.
|
BrokerService |
getBrokerService()
Returns the BrokerService object to which the communication belongs.
|
byte[] |
getUserData()
Returns the user data associated with this communication.
|
ConversationState |
saveState()
Returns a ConversationState object for the current
Conversation object or the current UnitofWork object.
|
void |
setUserData(byte[] u)
Sets the user data associated with this communication.
|
protected BrokerService brokerService
public BrokerService getBrokerService()
public byte[] getUserData()
public void setUserData(byte[] u)
u
- user data as byte arrayjava.lang.IllegalArgumentException
- Thrown if the length of the user data exceeds 16 bytes.getUserData()
public ConversationState saveState() throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if conversation ID is invalid.ConversationState
public void dispose() throws BrokerException
dispose()
does
not call the Broker.BrokerException
- A Broker exception.