Class StatusIndicator

java.lang.Object
org.agrona.concurrent.status.StatusIndicatorReader
org.agrona.concurrent.status.StatusIndicator
Direct Known Subclasses:
UnsafeBufferStatusIndicator

public abstract class StatusIndicator extends StatusIndicatorReader
Extends a StatusIndicatorReader with the ability to set the value so other readers can take action.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.