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) |
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() |
deregisterListener, destroy, equals, getClient, getContext, getDistributedObjectName, getId, getName, getPartitionKey, getSerializationService, getServiceName, hashCode, invoke, invoke, invokeOnPartition, invokeOnPartitionInterruptibly, onDestroy, onShutdown, postDestroy, preDestroy, registerListener, setContext, toData, toObject
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
destroy, getName, getPartitionKey, getServiceName
protected void onInitialize()
ClientProxy
onInitialize
in class ClientProxy
public 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>
InterruptedException
public 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 © 2016 Hazelcast, Inc.. All Rights Reserved.