public interface DriverManagedResource
Modifier and Type | Method and Description |
---|---|
void |
close()
Close resources that are not external.
|
default boolean |
free()
Free external resources such as files.
|
boolean |
hasReachedEndOfLife()
Has resource reached end of its life and should be reclaimed?
|
void |
onTimeEvent(long timeNs,
long timeMs,
DriverConductor conductor)
Inform resource of timeNs passing and pass it DriverConductor to inform of any state transitions.
|
default boolean free()
void close()
void onTimeEvent(long timeNs, long timeMs, DriverConductor conductor)
timeNs
- now in nanosecondstimeMs
- now in milliseconds for epochconductor
- to inform of any state transitionsboolean hasReachedEndOfLife()
Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.