@FunctionalInterface public interface CounterProvider
| Modifier and Type | Method and Description |
|---|---|
AtomicCounter |
newCounter(int typeId,
DirectBuffer keyBuffer,
int keyOffset,
int keyLength,
DirectBuffer labelBuffer,
int labelOffset,
int labelLength)
Allocate a counter record and wrap it with a new
AtomicCounter for use. |
AtomicCounter newCounter(int typeId, DirectBuffer keyBuffer, int keyOffset, int keyLength, DirectBuffer labelBuffer, int labelOffset, int labelLength)
AtomicCounter for use.
If the keyBuffer is null then a copy of the key is not attempted.
typeId - for the counter.keyBuffer - containing the optional key for the counter.keyOffset - within the keyBuffer at which the key begins.keyLength - of the key in the keyBuffer.labelBuffer - containing the mandatory label for the counter.labelOffset - within the labelBuffer at which the label begins.labelLength - of the label in the labelBuffer.Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.