@Deprecated public interface NavuCdbOperDiffIterate extends NavuCdbDiffIterate
For each entry in the change set one invocation per entry is done
on the iterate
method supplying the same instance of
NavuCdbSubscriptionConfigContext
for the entire change set.
Before the iterate
method ends the implementation should
call either NavuCdbSubscriptionContext.iterContinue()
or
NavuCdbSubscriptionContext.iterRecurse()
. Note however the
iterContinue method invocation is the same as calling
"return".
A instance of the implementation needs to be
registered within a specific NavuCdbOperSubscriber
through
NavuCdbSubscriber.register(NavuCdbDiffIterate,ConfPath)
before
the subscriber is started.
NavuCdbSubscriber x = NavuCdbSubscribers.operSubscriber("localhost",port,name); x.register(new NavuCdbOperDiffIterate() { public void iterate (NavuCdbSubsciptionOperContext ctx) { //react on a change entry ctx.iterRecurse(); //continues with all children to the node } }); x.subscriberStart();
Modifier and Type | Method and Description |
---|---|
void |
iterate(NavuCdbSubscriptionOperContext ctx)
Deprecated.
This method will be called for each change entry in the
change set
|
void iterate(NavuCdbSubscriptionOperContext ctx)
The implementation should call any of
NavuCdbSubscriptionContext.iterContinue()
,
NavuCdbSubscriptionContext.iterRecurse()
at the end of
each iteration or NavuCdbSubscriptionContext.iterStop()
to stop the current iteration.
The same instance of ctx
is supplied in each
invocation of the this method. Note however the
iterContinue method invocation is the same as calling
"return".
ctx
- the subscription context for the change set