Modifier and Type | Method and Description |
---|---|
public long | Returns: the current value of the consumer progress indexThis method has no concurrent visibility semantics. |
public long | Returns: the current value of the producer progress indexThis method has no concurrent visibility semantics. |
currentConsumerIndex | back to summary |
---|---|
public long currentConsumerIndex() This method has no concurrent visibility semantics. The value returned may be negative. Under normal
circumstances 2 consecutive calls to this method can offer an idea of progress made by consumer threads
by subtracting the 2 results though in extreme cases (if consumers have progressed by more than 2^64)
this may also fail.
|
currentProducerIndex | back to summary |
---|---|
public long currentProducerIndex() This method has no concurrent visibility semantics. The value returned may be negative. Under normal
circumstances 2 consecutive calls to this method can offer an idea of progress made by producer threads
by subtracting the 2 results though in extreme cases (if producers have progressed by more than 2^64)
this may also fail.
|