Interface TransactionParticipant

All Superinterfaces:
TransactionConstants
All Known Subinterfaces:
AbortParticipant, GroupSelector
All Known Implementing Classes:
BSHGroupSelector, BSHTransactionParticipant, CheckFields, CheckPoint, Debug, Delay, Forward, HasEntry, Join, JSParticipant, Pause, ProtectDebugInfo, QueryHost, SelectDestination, SendResponse, Switch, Trace

2 phase commit participant
Since:
1.4.7
  • Method Details

    • prepare

      int prepare(long id, Serializable context)
      Called by TransactionManager in preparation for a transaction
      Parameters:
      id - the Transaction identifier
      context - transaction context
      Returns:
      PREPARED or ABORTED (| NO_JOIN | READONLY)
    • commit

      default void commit(long id, Serializable context)
      Called by TransactionManager upon transaction commit. Warning: implementation should be able to handle multiple calls with the same transaction id (rare crash recovery)
      Parameters:
      id - the Transaction identifier
      context - transaction context
    • abort

      default void abort(long id, Serializable context)
      Called by TransactionManager upon transaction commit. Warning: implementation should be able to handle multiple calls with the same transaction id (rare crash recovery)
      Parameters:
      id - the Transaction identifier
      context - transaction context