public class CommitPos extends Object
Modifier and Type | Field and Description |
---|---|
static int |
COMMIT_POSITION_TYPE_ID
Type id of a commit position counter.
|
static String |
NAME
Human readable name for the counter.
|
Constructor and Description |
---|
CommitPos() |
Modifier and Type | Method and Description |
---|---|
static Counter |
allocate(Aeron aeron)
Allocate a counter to represent the commit position on stream for the current leadership term.
|
static int |
findCounterId(CountersReader counters)
Find the active counter id for a cluster commit position
|
public static final int COMMIT_POSITION_TYPE_ID
public static final String NAME
public static Counter allocate(Aeron aeron)
aeron
- to allocate the counter.Counter
for the commit position.public static int findCounterId(CountersReader counters)
counters
- to search within.CountersReader.NULL_COUNTER_ID
.Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.