public class AeronClient extends java.lang.Object implements DriverManagedResource
| Constructor and Description |
|---|
AeronClient(long clientId,
long clientLivenessTimeoutNs,
long nowNs) |
| Modifier and Type | Method and Description |
|---|---|
long |
clientId() |
void |
close()
Close and delete or free external dependencies.
|
boolean |
hasReachedEndOfLife()
Has resource reached end of its life and should be reclaimed?
|
boolean |
hasTimedOut(long nowNs) |
void |
onTimeEvent(long timeNs,
long timeMs,
DriverConductor conductor)
Inform resource of timeNs passing and pass it DriverConductor to inform of any state transitions.
|
long |
timeOfLastKeepalive() |
void |
timeOfLastKeepalive(long nowNs) |
public AeronClient(long clientId,
long clientLivenessTimeoutNs,
long nowNs)
public void close()
DriverManagedResourceclose in interface DriverManagedResourcepublic long clientId()
public long timeOfLastKeepalive()
public void timeOfLastKeepalive(long nowNs)
public boolean hasTimedOut(long nowNs)
public void onTimeEvent(long timeNs,
long timeMs,
DriverConductor conductor)
DriverManagedResourceonTimeEvent in interface DriverManagedResourcetimeNs - now in nanosecondstimeMs - now in milliseconds for epochconductor - to inform of any state transitionspublic boolean hasReachedEndOfLife()
DriverManagedResourcehasReachedEndOfLife in interface DriverManagedResourceCopyright © 2014-2018 Real Logic Ltd. All Rights Reserved.