com.atomikos.icatch.msg
Class CommitMessageImp
java.lang.Object
com.atomikos.icatch.msg.AbstractMessage
com.atomikos.icatch.msg.CommitMessageImp
- All Implemented Interfaces:
- CommitMessage, TransactionMessage
public class CommitMessageImp
- extends AbstractMessage
- implements CommitMessage
A reusable implementation of a commit message.
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 |
Method Summary |
int |
getMessageType()
Get the message type. |
boolean |
isOnePhase()
Test if the commit is a one-phase commit. |
CommitMessageImp
public CommitMessageImp(int protocol,
int format,
Object targetAddress,
String targetURI,
Object senderAddress,
String senderURI,
boolean onePhase)
- 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.onePhase
- Is this a one phase commit or not?
isOnePhase
public boolean isOnePhase()
- Description copied from interface:
CommitMessage
- Test if the commit is a one-phase commit.
- Specified by:
isOnePhase
in interface CommitMessage
- Returns:
- boolean True iff one phase.
- See Also:
CommitMessage
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.