Package org.agrona.concurrent.status
Class StatusIndicatorReader
java.lang.Object
org.agrona.concurrent.status.StatusIndicatorReader
- Direct Known Subclasses:
StatusIndicator
Reads the value of a counter to indicate current status and what abstraction should be taken.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract long
Get the current status indication of a component with acquire semantics.abstract long
Get the current status indication of a component with opaque semantics.abstract long
Get the current status indication of a component with volatile semantics.abstract int
id()
Identifier for this status indicator.
-
Constructor Details
-
StatusIndicatorReader
public StatusIndicatorReader()Default constructor.
-
-
Method Details
-
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.
-