public class CounterLink extends java.lang.Object implements DriverManagedResource
Constructor and Description |
---|
CounterLink(org.agrona.concurrent.status.AtomicCounter counter,
long registrationId,
AeronClient client) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close resources that are not external.
|
int |
counterId() |
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.
|
long |
registrationId() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
free
public CounterLink(org.agrona.concurrent.status.AtomicCounter counter, long registrationId, AeronClient client)
public void close()
DriverManagedResource
close
in interface DriverManagedResource
public long registrationId()
public int counterId()
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.