org.openorb.ccs.kernel
Class Synchronization
public
class
Synchronization
extends SynchronizationPOA
This class is a Synchronization implementation of the Transaction Service.
It is used to release all locks from transaction which rolledbacked or committed.
Method Summary |
void | after_completion(Status status)
This operation is invoked after all commit or rollback responses have been received by
this coordinator. |
void | before_completion()
This operation is invoked prior to the start of the two-phase commit protocol within the
coordinator the Synchronization has registered with. |
Constructor.
Parameters: tls The trnascational lock set. current The current transaction coordinator.
public void after_completion(Status status)
This operation is invoked after all commit or rollback responses have been received by
this coordinator. The current status of the transaction (as determined by a get_status on
the Coordinator) is provided as input.
Only standard exceptions may be raised and they have no effect on the outcome of the
commitment process.
Parameters: status The transaction status.
public void before_completion()
This operation is invoked prior to the start of the two-phase commit protocol within the
coordinator the Synchronization has registered with. This operation will therefore be
invoked prior to prepare being issued to Resource objects or X/Open Resource
Managers registered with that same coordinator. The Synchronization object must
ensure that any state data it has that needs to be made persistent is made available to
the resource.
Only standard exceptions may be raised. Unless there is a defined recovery procedure
for the exception raised, the transaction should be marked rollback only.