use of com.hazelcast.ringbuffer.impl.operations.GenericOperation in project hazelcast by hazelcast.
the class RingbufferProxy method size.
@Override
public long size() {
Operation op = new GenericOperation(name, OPERATION_SIZE).setPartitionId(partitionId);
InternalCompletableFuture<Long> f = invokeOnPartition(op);
return f.join();
}
use of com.hazelcast.ringbuffer.impl.operations.GenericOperation in project hazelcast by hazelcast.
the class RingbufferProxy method tailSequence.
@Override
public long tailSequence() {
Operation op = new GenericOperation(name, OPERATION_TAIL).setPartitionId(partitionId);
InternalCompletableFuture<Long> f = invokeOnPartition(op);
return f.join();
}
use of com.hazelcast.ringbuffer.impl.operations.GenericOperation in project hazelcast by hazelcast.
the class RingbufferProxy method remainingCapacity.
@Override
public long remainingCapacity() {
// capacity will always be equal to the capacity.
if (config.getTimeToLiveSeconds() == 0) {
return config.getCapacity();
}
Operation op = new GenericOperation(name, OPERATION_REMAINING_CAPACITY).setPartitionId(partitionId);
InternalCompletableFuture<Long> f = invokeOnPartition(op);
return f.join();
}
use of com.hazelcast.ringbuffer.impl.operations.GenericOperation in project hazelcast by hazelcast.
the class RingbufferProxy method headSequence.
@Override
public long headSequence() {
Operation op = new GenericOperation(name, OPERATION_HEAD).setPartitionId(partitionId);
InternalCompletableFuture<Long> f = invokeOnPartition(op);
return f.join();
}
Aggregations