Search in sources :

Example 1 with ExistsOperation

use of org.apache.camel.component.zookeeper.operations.ExistsOperation 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)

Example 2 with ExistsOperation

use of org.apache.camel.component.zookeeper.operations.ExistsOperation 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)2 ExistenceChangedOperation (org.apache.camel.component.zookeeper.operations.ExistenceChangedOperation)2 ExistsOperation (org.apache.camel.component.zookeeper.operations.ExistsOperation)2 ChildrenChangedOperation (org.apache.camel.component.zookeeper.operations.ChildrenChangedOperation)1 DataChangedOperation (org.apache.camel.component.zookeeper.operations.DataChangedOperation)1 GetChildrenOperation (org.apache.camel.component.zookeeper.operations.GetChildrenOperation)1 GetDataOperation (org.apache.camel.component.zookeeper.operations.GetDataOperation)1