public interface ModificationSubscriber extends Subscriber
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT_NOTICE |
Modifier and Type | Method and Description |
---|---|
void |
commit(java.lang.String emitter,
commonj.sdo.DataObject rootDO,
int exitPointType,
java.lang.String inlineName)
Commit is called if all the modification subscribers that are
listed with a preExit or inlineExit or postExit have returned true
during the runtime.
|
boolean |
inlineExitCall(java.lang.String emitter,
commonj.sdo.DataObject daisyChainDGRootDO,
java.lang.String inlineTopicName)
This function is called in the middle of a Topic-Emitter's execution
and allows the ModificationSubscriber to execute its inlineExit code.
|
boolean |
postExitCall(java.lang.String emitter,
commonj.sdo.DataObject daisyChainDGRootDO,
commonj.sdo.DataObject adapterDGRootDo)
This function is called at the end of a Topic-Emitter's execution
and allows the ModificationSubscriber to execute its PostExit code.
|
boolean |
preExitCall(java.lang.String emitter,
commonj.sdo.DataObject pristineDGRootDO)
This function is called at the beginning of a Topic-Emitter and allows
the ModificationSubscriber to execute its PreExit code.
|
void |
rollback(java.lang.String emitter,
commonj.sdo.DataObject rootDO,
int exitPointType,
java.lang.String inlineName)
Rollback is called if any of the modification subscribers that are
listed with a preExit or inlineExit or postExit have returned false
during the runtime.
|
getSubscriberName, getSubscriberType, initSubscriber, recovery, shutdownSubscriber
static final java.lang.String COPYRIGHT_NOTICE
boolean preExitCall(java.lang.String emitter, commonj.sdo.DataObject pristineDGRootDO) throws SubscriberException
emitter
- The topic-emitter name on which the subscriber is listening onpristineDGRootDO
- Root The DataObject which has the information passed from APISubscriberException
boolean inlineExitCall(java.lang.String emitter, commonj.sdo.DataObject daisyChainDGRootDO, java.lang.String inlineTopicName) throws SubscriberException
emitter
- The topic-emitter name on which we are listening ondaisyChainDGRootDO
- Root DataObject which has the information passed from API
which might have been modified by other subscribersinlineTopicName
- inline topic nameSubscriberException
boolean postExitCall(java.lang.String emitter, commonj.sdo.DataObject daisyChainDGRootDO, commonj.sdo.DataObject adapterDGRootDo) throws SubscriberException
emitter
- The topic-emitter name on which we are listening ondaisyChainDGRootDO
- Root DataObject which has the information passed from API
which might have been modified by other subscribersadapterDGRootDO
- Root DataObject returned by the adapterSubscriberException
void commit(java.lang.String emitter, commonj.sdo.DataObject rootDO, int exitPointType, java.lang.String inlineName) throws SubscriberException
emitter
- Topic-emitter namerootDO
- The modified DataObject Object, for postExitCall it
is the adapterDGRootDOexitPointType
- Defines the point in the code execution at which
the commit is being calledinlineName
- - null for preExitCall & postExitCall but has the
name of the inline pointSubscriberException
void rollback(java.lang.String emitter, commonj.sdo.DataObject rootDO, int exitPointType, java.lang.String inlineName) throws SubscriberException
emitter
- Topic-emitter namerootDO
- The modified DataObject Object, for postExitCall it
is the adapterDGRootDOexitPointType
- Defines the point in the code execution at which
the commit is being calledinlineName
- - null for preExitCall & postExitCall but has the
name of the inline pointSubscriberException