|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SelfManagedDataManager
An interface for use by a message handler to allow it to save and restore any message-specific data.
A handler can have message-specific data that needs to be associated the message being processed. The handler can keep this message-specific data in the Messagecontext object by adding the data to the user data table via the MessageContext method. When the MessageContext object is saved (for example, to persistent storage), and restored, this interface SelfManagedDataManager provides a way for the handler to save and restore the handler's message-specific data.
MessageContext
Method Summary | |
---|---|
void |
deserializeSelfManagedData(java.io.ByteArrayInputStream data,
MessageContext mc)
This method is invoked when the MessageContext object is being restored. |
void |
restoreTransientData(MessageContext mc)
This method is invoked when the MessageContext object is being restored and after the deserializeSelfManagedData() method. |
java.io.ByteArrayOutputStream |
serializeSelfManagedData(MessageContext mc)
This method is invoked when the MessageContext object is being saved. |
Method Detail |
---|
java.io.ByteArrayOutputStream serializeSelfManagedData(MessageContext mc) throws java.io.IOException
mc
- the MessageContext that is being saved
java.io.IOException
void deserializeSelfManagedData(java.io.ByteArrayInputStream data, MessageContext mc) throws java.io.IOException
data
- ByteArrayInputStream consisting of the data that this handler had previously savedmc
- the MessageContext object being restored
java.io.IOException
void restoreTransientData(MessageContext mc)
mc
- the MessageContext object being restored
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |