public class TracingRingbuffer<E> extends Object implements com.hazelcast.ringbuffer.Ringbuffer<E>
| Constructor and Description |
|---|
TracingRingbuffer(com.hazelcast.ringbuffer.Ringbuffer<E> ringbuffer,
boolean traceWithActiveSpanOnly) |
| Modifier and Type | Method and Description |
|---|---|
long |
add(E item) |
com.hazelcast.core.ICompletableFuture<Long> |
addAllAsync(Collection<? extends E> collection,
com.hazelcast.ringbuffer.OverflowPolicy overflowPolicy) |
com.hazelcast.core.ICompletableFuture<Long> |
addAsync(E item,
com.hazelcast.ringbuffer.OverflowPolicy overflowPolicy) |
long |
capacity() |
void |
destroy() |
String |
getName() |
String |
getPartitionKey() |
String |
getServiceName() |
long |
headSequence() |
com.hazelcast.core.ICompletableFuture<com.hazelcast.ringbuffer.ReadResultSet<E>> |
readManyAsync(long startSequence,
int minCount,
int maxCount,
com.hazelcast.core.IFunction<E,Boolean> filter) |
E |
readOne(long sequence) |
long |
remainingCapacity() |
long |
size() |
long |
tailSequence() |
public TracingRingbuffer(com.hazelcast.ringbuffer.Ringbuffer<E> ringbuffer, boolean traceWithActiveSpanOnly)
public long capacity()
capacity in interface com.hazelcast.ringbuffer.Ringbuffer<E>public long size()
size in interface com.hazelcast.ringbuffer.Ringbuffer<E>public long tailSequence()
tailSequence in interface com.hazelcast.ringbuffer.Ringbuffer<E>public long headSequence()
headSequence in interface com.hazelcast.ringbuffer.Ringbuffer<E>public long remainingCapacity()
remainingCapacity in interface com.hazelcast.ringbuffer.Ringbuffer<E>public com.hazelcast.core.ICompletableFuture<Long> addAsync(E item, com.hazelcast.ringbuffer.OverflowPolicy overflowPolicy)
addAsync in interface com.hazelcast.ringbuffer.Ringbuffer<E>public E readOne(long sequence) throws InterruptedException
readOne in interface com.hazelcast.ringbuffer.Ringbuffer<E>InterruptedExceptionpublic com.hazelcast.core.ICompletableFuture<Long> addAllAsync(Collection<? extends E> collection, com.hazelcast.ringbuffer.OverflowPolicy overflowPolicy)
addAllAsync in interface com.hazelcast.ringbuffer.Ringbuffer<E>public com.hazelcast.core.ICompletableFuture<com.hazelcast.ringbuffer.ReadResultSet<E>> readManyAsync(long startSequence, int minCount, int maxCount, com.hazelcast.core.IFunction<E,Boolean> filter)
readManyAsync in interface com.hazelcast.ringbuffer.Ringbuffer<E>public String getPartitionKey()
getPartitionKey in interface com.hazelcast.core.DistributedObjectpublic String getName()
getName in interface com.hazelcast.core.DistributedObjectpublic String getServiceName()
getServiceName in interface com.hazelcast.core.DistributedObjectpublic void destroy()
destroy in interface com.hazelcast.core.DistributedObjectCopyright © 2018-2019–2019. All rights reserved.