public class UnsafeBufferStatusIndicator extends StatusIndicator
StatusIndicator
which wraps an AtomicBuffer
with a given counter id.CountersManager
Constructor and Description |
---|
UnsafeBufferStatusIndicator(AtomicBuffer buffer,
int counterId)
Map a status indicator over a buffer.
|
Modifier and Type | Method and Description |
---|---|
long |
getVolatile()
Get the current status indication of a component with volatile semantics.
|
int |
id()
Identifier for this status indicator.
|
void |
setOrdered(long value)
Sets the current status indication of the component with ordered atomic memory semantics.
|
String |
toString() |
public UnsafeBufferStatusIndicator(AtomicBuffer buffer, int counterId)
buffer
- containing the indicator.counterId
- identifier of the indicator.public int id()
id
in class StatusIndicatorReader
public void setOrdered(long value)
setOrdered
in class StatusIndicator
value
- the current status indication of the component.public long getVolatile()
getVolatile
in class StatusIndicatorReader
Copyright © 2014-2019 Real Logic Ltd. All Rights Reserved.