E - the type of elements in this ringbufferpublic class ClientRingbufferProxy<E> extends ClientProxy implements Ringbuffer<E>
Ringbuffer.name| Constructor and Description |
|---|
ClientRingbufferProxy(String serviceName,
String objectName,
ClientContext context) |
| Modifier and Type | Method and Description |
|---|---|
long |
add(E item) |
ICompletableFuture<Long> |
addAllAsync(Collection<? extends E> collection,
OverflowPolicy overflowPolicy) |
ICompletableFuture<Long> |
addAsync(E item,
OverflowPolicy overflowPolicy) |
long |
capacity() |
long |
headSequence() |
protected <T> T |
invoke(ClientMessage clientMessage,
int partitionId) |
protected void |
onInitialize()
Called when proxy is created.
|
ICompletableFuture<ReadResultSet<E>> |
readManyAsync(long startSequence,
int minCount,
int maxCount,
IFunction<E,Boolean> filter) |
E |
readOne(long sequence) |
long |
remainingCapacity() |
long |
size() |
long |
tailSequence() |
String |
toString() |
deregisterListener, destroy, destroyLocally, destroyRemotely, equals, getClient, getConnectedServerVersion, getContext, getDistributedObjectName, getId, getName, getPartitionKey, getSerializationService, getServiceName, hashCode, invoke, invoke, invokeOnAddress, invokeOnPartition, invokeOnPartitionInterruptibly, onDestroy, onShutdown, postDestroy, preDestroy, registerListener, setContext, toData, toObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitdestroy, getName, getPartitionKey, getServiceNamepublic ClientRingbufferProxy(String serviceName, String objectName, ClientContext context)
protected void onInitialize()
ClientProxyonInitialize in class ClientProxypublic long capacity()
capacity in interface Ringbuffer<E>public long size()
size in interface Ringbuffer<E>public long tailSequence()
tailSequence in interface Ringbuffer<E>public long headSequence()
headSequence in interface Ringbuffer<E>public long remainingCapacity()
remainingCapacity in interface Ringbuffer<E>public long add(E item)
add in interface Ringbuffer<E>public ICompletableFuture<Long> addAsync(E item, OverflowPolicy overflowPolicy)
addAsync in interface Ringbuffer<E>public E readOne(long sequence) throws InterruptedException
readOne in interface Ringbuffer<E>InterruptedExceptionpublic ICompletableFuture<Long> addAllAsync(Collection<? extends E> collection, OverflowPolicy overflowPolicy)
addAllAsync in interface Ringbuffer<E>public ICompletableFuture<ReadResultSet<E>> readManyAsync(long startSequence, int minCount, int maxCount, IFunction<E,Boolean> filter)
readManyAsync in interface Ringbuffer<E>protected <T> T invoke(ClientMessage clientMessage, int partitionId)
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.