Package org.agrona.concurrent.status
Class StatusIndicatorReader
- java.lang.Object
-
- org.agrona.concurrent.status.StatusIndicatorReader
-
- Direct Known Subclasses:
StatusIndicator
public abstract class StatusIndicatorReader extends java.lang.Object
Reads the value of a counter to indicate current status and what abstraction should be taken.- See Also:
CountersReader
-
-
Constructor Summary
Constructors Constructor Description StatusIndicatorReader()
Default constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract long
getAcquire()
Get the current status indication of a component with acquire semantics.abstract long
getOpaque()
Get the current status indication of a component with opaque semantics.abstract long
getVolatile()
Get the current status indication of a component with volatile semantics.abstract int
id()
Identifier for this status indicator.
-
-
-
Method Detail
-
id
public abstract int id()
Identifier for this status indicator.- Returns:
- the identifier for this status indicator.
-
getVolatile
public abstract long getVolatile()
Get the current status indication of a component with volatile semantics.- Returns:
- the current status indication of a component.
-
getAcquire
public abstract long getAcquire()
Get the current status indication of a component with acquire semantics.- Returns:
- the current status indication of a component.
-
getOpaque
public abstract long getOpaque()
Get the current status indication of a component with opaque semantics.- Returns:
- the current status indication of a component.
-
-