public class AeronClient extends java.lang.Object implements DriverManagedResource
Constructor and Description |
---|
AeronClient(long clientId,
long clientLivenessTimeoutNs,
long now) |
Modifier and Type | Method and Description |
---|---|
long |
clientId() |
void |
delete() |
boolean |
hasReachedEndOfLife()
Has resource reached end of its life and should be reclaimed?
|
boolean |
hasTimedOut(long now) |
void |
onTimeEvent(long time,
DriverConductor conductor)
Inform resource of time passing and pass it DriverConductor to inform of any state transitions.
|
long |
timeOfLastKeepalive() |
void |
timeOfLastKeepalive(long now) |
long |
timeOfLastStateChange() |
void |
timeOfLastStateChange(long time) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
consumerPosition, decRef, incRef, producerPosition, unblockAtConsumerPosition
public AeronClient(long clientId, long clientLivenessTimeoutNs, long now)
public long clientId()
public long timeOfLastKeepalive()
public void timeOfLastKeepalive(long now)
public boolean hasTimedOut(long now)
public void onTimeEvent(long time, DriverConductor conductor)
DriverManagedResource
onTimeEvent
in interface DriverManagedResource
time
- now in nanosecondsconductor
- to inform of any state transitionspublic boolean hasReachedEndOfLife()
DriverManagedResource
hasReachedEndOfLife
in interface DriverManagedResource
public void timeOfLastStateChange(long time)
timeOfLastStateChange
in interface org.agrona.ManagedResource
public long timeOfLastStateChange()
timeOfLastStateChange
in interface org.agrona.ManagedResource
public void delete()
delete
in interface org.agrona.ManagedResource
Copyright © 2014 - 2016 Real Logic Ltd. All Rights Reserved.