use of org.apache.camel.component.zookeeper.operations.AnyOfOperations in project camel by apache.
the class ZooKeeperConsumer method addBasicDataConsumeSequence.
private void addBasicDataConsumeSequence(String node) {
operations.clear();
operations.add(new AnyOfOperations(node, new ExistsOperation(connection, node), new ExistenceChangedOperation(connection, node)));
operations.add(new GetDataOperation(connection, node));
operations.add(new DataChangedOperation(connection, node, false, configuration.isSendEmptyMessageOnDelete()));
}
use of org.apache.camel.component.zookeeper.operations.AnyOfOperations 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));
}
Aggregations