public class HeartbeatStatus
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
REGISTRATION_ID_OFFSET
Offset in the key meta data for the registration id of the counter.
|
Constructor and Description |
---|
HeartbeatStatus() |
Modifier and Type | Method and Description |
---|---|
static org.agrona.concurrent.status.AtomicCounter |
allocate(org.agrona.MutableDirectBuffer tempBuffer,
java.lang.String name,
int typeId,
org.agrona.concurrent.status.CountersManager countersManager,
long registrationId)
Allocate a counter for tracking the last heartbeat of an entity.
|
static int |
allocateCounterId(org.agrona.MutableDirectBuffer tempBuffer,
java.lang.String name,
int typeId,
org.agrona.concurrent.status.CountersManager countersManager,
long registrationId) |
public static final int REGISTRATION_ID_OFFSET
public static org.agrona.concurrent.status.AtomicCounter allocate(org.agrona.MutableDirectBuffer tempBuffer, java.lang.String name, int typeId, org.agrona.concurrent.status.CountersManager countersManager, long registrationId)
tempBuffer
- to be used for labels and key.name
- of the counter for the label.typeId
- of the counter for classification.countersManager
- from which to allocated the underlying storage.registrationId
- to be associated with the counter.AtomicCounter
for tracking the last heartbeat.public static int allocateCounterId(org.agrona.MutableDirectBuffer tempBuffer, java.lang.String name, int typeId, org.agrona.concurrent.status.CountersManager countersManager, long registrationId)
Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.