public class PublicationLink extends java.lang.Object implements DriverManagedResource
NetworkPublication
or IpcPublication
.Constructor and Description |
---|
PublicationLink(long registrationId,
AeronClient client,
IpcPublication publication) |
PublicationLink(long registrationId,
AeronClient client,
NetworkPublication publication) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close resources that are not external.
|
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 PublicationLink(long registrationId, AeronClient client, NetworkPublication publication)
public PublicationLink(long registrationId, AeronClient client, IpcPublication publication)
public void close()
DriverManagedResource
close
in interface DriverManagedResource
public long registrationId()
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.