public abstract class Position extends ReadablePosition
Threadsafe to write to from a single writer.
Constructor and Description |
---|
Position() |
Modifier and Type | Method and Description |
---|---|
abstract long |
get()
Get the current position of a component without memory ordering semantics.
|
abstract boolean |
isClosed()
Has this Position been closed?
|
abstract boolean |
proposeMax(long proposedValue)
Set the position to a new proposedValue if greater than the current value without memory ordering semantics.
|
abstract boolean |
proposeMaxOrdered(long proposedValue)
Set the position to the new proposedValue if greater than the current value with memory ordering semantics.
|
abstract void |
set(long value)
Sets the current position of the component without memory ordering semantics.
|
abstract void |
setOrdered(long value)
Sets the current position of the component with ordered memory semantics.
|
abstract void |
setVolatile(long value)
Sets the current position of the component with volatile memory semantics.
|
close, getVolatile, id
public abstract boolean isClosed()
public abstract long get()
public abstract void set(long value)
value
- the current position of the component.public abstract void setOrdered(long value)
value
- the current position of the component.public abstract void setVolatile(long value)
value
- the current position of the component.public abstract boolean proposeMax(long proposedValue)
proposedValue
- for the new max.public abstract boolean proposeMaxOrdered(long proposedValue)
proposedValue
- for the new max.Copyright © 2014-2019 Real Logic Ltd. All Rights Reserved.