public interface Position extends ReadablePosition
| Modifier and Type | Method and Description |
|---|---|
long |
get()
Get the current position of a component without memory ordering semantics.
|
boolean |
isClosed()
Has this Position been closed?
|
boolean |
proposeMax(long proposedValue)
Set the position to the new proposedValue if it is greater than the current proposedValue memory ordering semantics.
|
boolean |
proposeMaxOrdered(long proposedValue)
Set the position to the new proposedValue if it is greater than the current proposedValue with ordered atomic
memory semantics.
|
void |
set(long value)
Sets the current position of the component without memory ordering semantics.
|
void |
setOrdered(long value)
Sets the current position of the component with ordered atomic memory semantics.
|
close, getVolatile, idboolean isClosed()
long get()
void set(long value)
value - the current position of the component.void setOrdered(long value)
value - the current position of the component.boolean proposeMax(long proposedValue)
proposedValue - for the new max.boolean proposeMaxOrdered(long proposedValue)
proposedValue - for the new max.Copyright © 2014 - 2016 Real Logic Ltd. All Rights Reserved.