public class AeronClient extends java.lang.Object implements DriverManagedResource
Constructor and Description |
---|
AeronClient(long clientId,
long clientLivenessTimeoutNs,
long nowMs,
org.agrona.concurrent.status.AtomicCounter clientTimeouts,
org.agrona.concurrent.status.AtomicCounter heartbeatStatus) |
Modifier and Type | Method and Description |
---|---|
long |
clientId() |
void |
close()
Close resources that are not external.
|
boolean |
hasReachedEndOfLife()
Has resource reached end of its life and should be reclaimed?
|
boolean |
hasTimedOut() |
void |
onTimeEvent(long timeNs,
long timeMs,
DriverConductor conductor)
Inform resource of timeNs passing and pass it DriverConductor to inform of any state transitions.
|
void |
timeOfLastKeepaliveMs(long nowMs) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
free
public AeronClient(long clientId, long clientLivenessTimeoutNs, long nowMs, org.agrona.concurrent.status.AtomicCounter clientTimeouts, org.agrona.concurrent.status.AtomicCounter heartbeatStatus)
public void close()
DriverManagedResource
close
in interface DriverManagedResource
public long clientId()
public void timeOfLastKeepaliveMs(long nowMs)
public boolean hasTimedOut()
public void onTimeEvent(long timeNs, long timeMs, DriverConductor conductor)
DriverManagedResource
onTimeEvent
in interface DriverManagedResource
timeNs
- now in nanosecondstimeMs
- now in milliseconds for epochconductor
- to inform of any state transitionspublic boolean hasReachedEndOfLife()
DriverManagedResource
hasReachedEndOfLife
in interface DriverManagedResource
Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.