Search in sources :

Example 1 with ChildrenChangedOperation

use of org.apache.camel.component.zookeeper.operations.ChildrenChangedOperation in project camel by apache.

the class ZooKeeperConsumer method addBasicChildListingSequence.

private void addBasicChildListingSequence(String node) {
    operations.clear();
    operations.add(new AnyOfOperations(node, new ExistsOperation(connection, node), new ExistenceChangedOperation(connection, node)));
    operations.add(new GetChildrenOperation(connection, node));
    operations.add(new ChildrenChangedOperation(connection, node, false));
}
Also used : ChildrenChangedOperation(org.apache.camel.component.zookeeper.operations.ChildrenChangedOperation) ExistenceChangedOperation(org.apache.camel.component.zookeeper.operations.ExistenceChangedOperation) ExistsOperation(org.apache.camel.component.zookeeper.operations.ExistsOperation) AnyOfOperations(org.apache.camel.component.zookeeper.operations.AnyOfOperations) GetChildrenOperation(org.apache.camel.component.zookeeper.operations.GetChildrenOperation)

Aggregations

AnyOfOperations (org.apache.camel.component.zookeeper.operations.AnyOfOperations)1 ChildrenChangedOperation (org.apache.camel.component.zookeeper.operations.ChildrenChangedOperation)1 ExistenceChangedOperation (org.apache.camel.component.zookeeper.operations.ExistenceChangedOperation)1 ExistsOperation (org.apache.camel.component.zookeeper.operations.ExistsOperation)1 GetChildrenOperation (org.apache.camel.component.zookeeper.operations.GetChildrenOperation)1