public abstract class SubscriptionLink extends Object implements DriverManagedResource
| Modifier and Type | Method and Description |
|---|---|
String |
channel()
Channel URI the subscription is on.
|
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()
Registration id of the subscription.
|
int |
streamId()
Stream id the subscription is on.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfreepublic final String channel()
public final int streamId()
public final long registrationId()
public void close()
DriverManagedResource.free(). That will
need to be called separately at the appropriate time.close in interface DriverManagedResourcepublic void onTimeEvent(long timeNs,
long timeMs,
DriverConductor conductor)
onTimeEvent in interface DriverManagedResourcetimeNs - now in nanoseconds.timeMs - now in milliseconds for epoch.conductor - to inform of any state transitions.public boolean hasReachedEndOfLife()
hasReachedEndOfLife in interface DriverManagedResourceCopyright © 2014-2023 Real Logic Limited. All Rights Reserved.