Package io.aeron.driver
Class SubscriptionLink
java.lang.Object
io.aeron.driver.SubscriptionLink
- All Implemented Interfaces:
DriverManagedResource
Subscription registration from a client used for liveness tracking.
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
channel()
Channel URI the subscription is on.void
close()
Close resources that are not external.boolean
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.final long
Registration id of the subscription.final int
streamId()
Stream id the subscription is on.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.aeron.driver.DriverManagedResource
free
-
Method Details
-
channel
Channel URI the subscription is on.- Returns:
- channel URI the subscription is on.
-
streamId
public final int streamId()Stream id the subscription is on.- Returns:
- stream id the subscription is on.
-
registrationId
public final long registrationId()Registration id of the subscription.- Returns:
- registration id of the subscription.
-
close
public void close()Close resources that are not external. This will not callDriverManagedResource.free()
. That will need to be called separately at the appropriate time.- Specified by:
close
in interfaceDriverManagedResource
-
onTimeEvent
Inform resource of timeNs passing and pass it DriverConductor to inform of any state transitions.- Specified by:
onTimeEvent
in interfaceDriverManagedResource
- Parameters:
timeNs
- now in nanoseconds.timeMs
- now in milliseconds for epoch.conductor
- to inform of any state transitions.
-
hasReachedEndOfLife
public boolean hasReachedEndOfLife()Has resource reached end of its life and should be reclaimed?- Specified by:
hasReachedEndOfLife
in interfaceDriverManagedResource
- Returns:
- whether resource has reached end of life or not.
-
toString
-