com.atomikos.icatch.msg
Class PreparedMessageImp
java.lang.Object
com.atomikos.icatch.msg.AbstractMessage
com.atomikos.icatch.msg.PreparedMessageImp
- All Implemented Interfaces:
- PreparedMessage, TransactionMessage
public class PreparedMessageImp
- extends AbstractMessage
- implements PreparedMessage
A reusable implementation of a prepared msg.
Fields inherited from interface com.atomikos.icatch.msg.TransactionMessage |
COMMIT_MESSAGE, ERROR_MESSAGE, FORGET_MESSAGE, FORMAT_SOAP, FORMAT_UNKNOWN, PREPARE_MESSAGE, PREPARED_MESSAGE, REGISTER_MESSAGE, REGISTERED_MESSAGE, REPLAY_MESSAGE, ROLLBACK_MESSAGE, STATE_MESSAGE |
Constructor Summary |
PreparedMessageImp(int protocol,
int format,
Object targetAddress,
String targetURI,
Object senderAddress,
String senderURI,
boolean readOnly,
boolean defaultIsRollback)
Create a new instance. |
PreparedMessageImp
public PreparedMessageImp(int protocol,
int format,
Object targetAddress,
String targetURI,
Object senderAddress,
String senderURI,
boolean readOnly,
boolean defaultIsRollback)
- Create a new instance.
- Parameters:
protocol
- The commit protocol.format
- The format of the message.targetAddress
- Where to send it.targetURI
- For which target object this is.senderAddress
- Who is sending this.senderURI
- Which object is sending this.readOnly
- True if read only.defaultIsRollback
- True if default timeout means rollback.
isReadOnly
public boolean isReadOnly()
- Description copied from interface:
PreparedMessage
- Tests if the participant is done.
- Specified by:
isReadOnly
in interface PreparedMessage
- Returns:
- boolean True iff the remote participant requires no further
notification.
- See Also:
PreparedMessage
defaultIsRollback
public boolean defaultIsRollback()
- Description copied from interface:
PreparedMessage
- Tests if the participant will automatically rollback.
- Specified by:
defaultIsRollback
in interface PreparedMessage
- Returns:
- boolean True iff the remote participant will rollback on timeout
by itself.
- See Also:
PreparedMessage
getMessageType
public int getMessageType()
- Description copied from interface:
TransactionMessage
- Get the message type.
- Specified by:
getMessageType
in interface TransactionMessage
- Returns:
- int One of the predefined types.
- See Also:
TransactionMessage
Copyright © 2012. All Rights Reserved.