public interface DriverManagedResource
extends org.agrona.ManagedResource
| Modifier and Type | Method and Description |
|---|---|
default long |
consumerPosition()
Position of the consumer for this resource.
|
default int |
decRef()
Decrement reference count to this resource.
|
boolean |
hasReachedEndOfLife()
Has resource reached end of its life and should be reclaimed?
|
default int |
incRef()
Increment reference count to this resource.
|
void |
onTimeEvent(long timeNs,
long timeMs,
DriverConductor conductor)
Inform resource of timeNs passing and pass it DriverConductor to inform of any state transitions.
|
default long |
producerPosition()
Position of the producer for this resource.
|
default boolean |
unblockAtConsumerPosition()
Unblock the resource at consumer position.
|
void onTimeEvent(long timeNs,
long timeMs,
DriverConductor conductor)
timeNs - now in nanosecondstimeMs - now in milliseconds for epochconductor - to inform of any state transitionsboolean hasReachedEndOfLife()
default int incRef()
default int decRef()
default long producerPosition()
default long consumerPosition()
default boolean unblockAtConsumerPosition()
Copyright © 2014-2017 Real Logic Ltd. All Rights Reserved.