com.arjuna.wst
Interface PersistableParticipant

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

public interface PersistableParticipant

The interface for a persistable resource.


Method Summary
 boolean restoreState(com.arjuna.ats.arjuna.state.InputObjectState ios)
          Restore the state of the particpant from the specified input object stream.
 boolean saveState(com.arjuna.ats.arjuna.state.OutputObjectState oos)
          Save the state of the particpant to the specified input object stream.
 

Method Detail

saveState

boolean saveState(com.arjuna.ats.arjuna.state.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(com.arjuna.ats.arjuna.state.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.


Copyright © 2011. All Rights Reserved.