Search in sources :

Example 1 with DataChangedOperation

use of org.apache.camel.component.zookeeper.operations.DataChangedOperation 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()));
}
Also used : GetDataOperation(org.apache.camel.component.zookeeper.operations.GetDataOperation) DataChangedOperation(org.apache.camel.component.zookeeper.operations.DataChangedOperation) ExistenceChangedOperation(org.apache.camel.component.zookeeper.operations.ExistenceChangedOperation) ExistsOperation(org.apache.camel.component.zookeeper.operations.ExistsOperation) AnyOfOperations(org.apache.camel.component.zookeeper.operations.AnyOfOperations)

Aggregations

AnyOfOperations (org.apache.camel.component.zookeeper.operations.AnyOfOperations)1 DataChangedOperation (org.apache.camel.component.zookeeper.operations.DataChangedOperation)1 ExistenceChangedOperation (org.apache.camel.component.zookeeper.operations.ExistenceChangedOperation)1 ExistsOperation (org.apache.camel.component.zookeeper.operations.ExistsOperation)1 GetDataOperation (org.apache.camel.component.zookeeper.operations.GetDataOperation)1