public final class ArchiveCounters extends Object
Aeron.clientId().| Modifier and Type | Method and Description |
|---|---|
static Counter |
allocate(Aeron aeron,
MutableDirectBuffer tempBuffer,
int typeId,
String name,
long archiveId)
Allocate a counter to represent state within an Archive.
|
static int |
appendArchiveIdLabel(MutableDirectBuffer tempBuffer,
int offset,
long archiveId)
Append
archiveId at the end of the counter label. |
static int |
find(CountersReader counters,
int typeId,
long archiveId)
Find the counter id for a type of counter in an Archive.
|
static int |
lengthOfArchiveIdLabel(long archiveId)
Returns the length of the archive id suffix in bytes.
|
public static Counter allocate(Aeron aeron, MutableDirectBuffer tempBuffer, int typeId, String name, long archiveId)
archiveId is assumed to be
Aeron.clientId().public static int appendArchiveIdLabel(MutableDirectBuffer tempBuffer, int offset, long archiveId)
archiveId at the end of the counter label.tempBuffer - to append label to.offset - at which current label data ends.archiveId - to use as suffix.public static int lengthOfArchiveIdLabel(long archiveId)
archiveId - that will be added to the label.public static int find(CountersReader counters, int typeId, long archiveId)
counters - to search within.typeId - of the counter.archiveId - to which the allocated counter belongs.Aeron.NULL_VALUE if not found.Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.