public class SubordinateVolatile2PCStub extends Object implements Volatile2PCParticipant
Constructor and Description |
---|
SubordinateVolatile2PCStub(SubordinateATCoordinator coordinator) |
Modifier and Type | Method and Description |
---|---|
void |
commit()
this is called as part of the after completion processing and should ensure that the interposed
coordinator performs its afterCompletion processing
|
void |
error()
this should never get called
|
Vote |
prepare()
This will be called when the parent coordinator is preparing its volatile participants and should ensure
that the interposed cooordinator does the same.
|
void |
rollback()
this is called as part of the after completion processing and should ensure that the interposed
coordinator performs its afterCompletion processing
|
void |
unknown()
this should never get called
|
public SubordinateVolatile2PCStub(SubordinateATCoordinator coordinator)
public Vote prepare() throws WrongStateException, SystemException
prepare
in interface Participant
WrongStateException
- if the subordinate coordinator does the sameSystemException
- if the subordinate coordinator does the sameVote
public void commit() throws WrongStateException, SystemException
commit
in interface Participant
WrongStateException
SystemException
public void rollback() throws WrongStateException, SystemException
rollback
in interface Participant
WrongStateException
SystemException
public void unknown() throws SystemException
unknown
in interface Participant
SystemException
public void error() throws SystemException
error
in interface Participant
SystemException
Copyright © 2019 JBoss by Red Hat. All rights reserved.