@Deprecated public interface NavuCdbConfigDiffIterate 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 NavuCdbConfigSubscriber
through
NavuCdbSubscriber.register(NavuCdbDiffIterate,ConfPath)
before
the subscriber is started.
NavuCdbSubscriber x = NavuCdbSubscribers.configSubscriber("localhost",port,name); x.register(new NavuCdbConfigDiffIterate() { public void iterate (NavuCdbSubsciptionConfigContext 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(NavuCdbSubscriptionConfigContext ctx)
Deprecated.
This method will be called for each change entry in the
change set
|
void iterate(NavuCdbSubscriptionConfigContext 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.
Note however the
iterContinue method invocation is the same as calling
"return".
The same instance of ctx
is supplied in each
invocation of the this method.
ctx
- the subscription context for the change set