public class ChangeSetMemberDelegate extends Object implements ChangeSetMember
ChangeSetMember
wrapper for a given TransactionManager
Constructor and Description |
---|
ChangeSetMemberDelegate(TransactionManager txMgr) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Defines how the underlying resource of this
ChangeSetMember can be cancelled (rolled back) |
void |
complete()
Defines how the underlying resource of this
ChangeSetMember can be completed (comitted) |
String |
getName()
The name should be directly linked to the resource the
ChangeSetMember manages
It can be used to ensure that a resource is only registered once on a given ChangeSetContext . |
boolean |
isMarkedForCancel()
Defines, if the underlying resource of this
ChangeSetMember was requested to be cancelled (rolled back). |
public ChangeSetMemberDelegate(TransactionManager txMgr)
public String getName()
ChangeSetMember
ChangeSetMember
manages
It can be used to ensure that a resource is only registered once on a given ChangeSetContext
.getName
in interface ChangeSetMember
ChangeSetMember
public void cancel()
ChangeSetMember
ChangeSetMember
can be cancelled (rolled back)cancel
in interface ChangeSetMember
public void complete()
ChangeSetMember
ChangeSetMember
can be completed (comitted)complete
in interface ChangeSetMember
public boolean isMarkedForCancel()
ChangeSetMember
ChangeSetMember
was requested to be cancelled (rolled back).
Please note that usually a ChangeSetContext
is marked for cancel as a whole through ChangeSetContext.markForCancel()
This method is mainly intended if there is some other (outside) API available, that could set the cancellation marker on the underlying resource.isMarkedForCancel
in interface ChangeSetMember
Copyright © 2021. All rights reserved.