Package org.agrona.concurrent.status
Class StatusIndicator
java.lang.Object
org.agrona.concurrent.status.StatusIndicatorReader
org.agrona.concurrent.status.StatusIndicator
- Direct Known Subclasses:
UnsafeBufferStatusIndicator
Extends a
StatusIndicatorReader
with the ability to set the value so other readers can take action.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
setOpaque
(long value) Sets the current status indication of the component with opaque memory semantics.abstract void
setOrdered
(long value) Sets the current status indication of the component with ordered memory semantics.abstract void
setRelease
(long value) Sets the current status indication of the component with release memory semantics.abstract void
setVolatile
(long value) Sets the current status indication of the component with volatile memory semantics.Methods inherited from class org.agrona.concurrent.status.StatusIndicatorReader
getAcquire, getOpaque, getVolatile, id
-
Constructor Details
-
StatusIndicator
public StatusIndicator()Default constructor.
-
-
Method Details
-
setVolatile
public abstract void setVolatile(long value) Sets the current status indication of the component with volatile memory semantics.- Parameters:
value
- the current status indication of the component.
-
setOrdered
public abstract void setOrdered(long value) Sets the current status indication of the component with ordered memory semantics.This method is identical to
setRelease(long)
and that method should be used instead.- Parameters:
value
- the current status indication of the component.
-
setRelease
public abstract void setRelease(long value) Sets the current status indication of the component with release memory semantics.- Parameters:
value
- the current status indication of the component.
-
setOpaque
public abstract void setOpaque(long value) Sets the current status indication of the component with opaque memory semantics.- Parameters:
value
- the current status indication of the component.
-