org.objectweb.jotm.btp.roles
Interface BtpResource
- All Known Implementing Classes:
- Inferior, Superior
- public interface BtpResource
VOTE_PREPARED
public static final int VOTE_PREPARED
- See Also:
- Constant Field Values
VOTE_CANCELLED
public static final int VOTE_CANCELLED
- See Also:
- Constant Field Values
VOTE_WRONG_STATE
public static final int VOTE_WRONG_STATE
- See Also:
- Constant Field Values
enrolled
public void enrolled(String transactionid)
- Parameters:
transactionid
- The transaction ID
prepare
public int prepare(String transactionid)
- Parameters:
transactionid
- The transaction ID
confirm
public boolean confirm(String transactionid,
boolean onephase)
throws Exception
- Parameters:
transactionid
- The transaction IDonephase
- true when 1-phase commit, false when 2-phase commit.
Exception
cancel
public boolean cancel(String transactionid)
throws Exception
- Parameters:
transactionid
- The transaction ID
Exception
contradiction
public void contradiction(String transactionid)
- Parameters:
transactionid
- The transaction ID
applicationMessage
public String applicationMessage(String transactionid,
XElement message)
- Parameters:
transactionid
- The transaction IDmessage
- The application message