Interface PersistableParticipant

All Known Implementing Classes:
ATParticipantRecoveryRecord, ATParticipantRecoveryRecord, BAParticipantRecoveryRecord, BAParticipantRecoveryRecord, BusinessAgreementWithCoordinatorCompletionStub, BusinessAgreementWithParticipantCompletionStub, Durable2PCStub, ParticipantStub, SubordinateCoordinatorCompletionParticipantStub, SubordinateDurable2PCStub, Volatile2PCStub

public interface PersistableParticipant
The interface for a persistable resource.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Restore the state of the particpant from the specified input object stream.
    boolean
    Save the state of the particpant to the specified input object stream.
  • Method Details

    • saveState

      boolean saveState(OutputObjectState oos)
      Save the state of the particpant to the specified input object stream.
      Parameters:
      oos - The output output stream.
      Returns:
      true if persisted, false otherwise.
    • restoreState

      boolean restoreState(InputObjectState ios)
      Restore the state of the particpant from the specified input object stream.
      Parameters:
      ios - The Input object stream.
      Returns:
      true if restored, false otherwise.