public abstract class SubscriptionLink extends java.lang.Object implements DriverManagedResource
| Modifier and Type | Field and Description |
|---|---|
protected AeronClient |
aeronClient |
protected long |
clientLivenessTimeoutNs |
protected boolean |
reachedEndOfLife |
protected long |
registrationId |
protected int |
streamId |
protected java.lang.String |
uri |
| Modifier | Constructor and Description |
|---|---|
protected |
SubscriptionLink(long registrationId,
int streamId,
java.lang.String channelUri,
AeronClient aeronClient,
long clientLivenessTimeoutNs) |
| Modifier and Type | Method and Description |
|---|---|
ReceiveChannelEndpoint |
channelEndpoint() |
abstract void |
close() |
void |
delete() |
boolean |
hasReachedEndOfLife()
Has resource reached end of its life and should be reclaimed?
|
boolean |
isReliable() |
abstract void |
link(java.lang.Object source,
org.agrona.concurrent.status.ReadablePosition position) |
boolean |
matches(int streamId) |
boolean |
matches(NetworkPublication publication) |
boolean |
matches(ReceiveChannelEndpoint channelEndpoint,
int streamId) |
void |
onTimeEvent(long timeNs,
DriverConductor conductor)
Inform resource of timeNs passing and pass it DriverConductor to inform of any state transitions.
|
long |
registrationId() |
int |
streamId() |
long |
timeOfLastStateChange() |
void |
timeOfLastStateChange(long time) |
abstract void |
unlink(java.lang.Object source) |
java.lang.String |
uri() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconsumerPosition, decRef, incRef, producerPosition, unblockAtConsumerPositionprotected final long registrationId
protected final long clientLivenessTimeoutNs
protected final int streamId
protected final java.lang.String uri
protected final AeronClient aeronClient
protected boolean reachedEndOfLife
protected SubscriptionLink(long registrationId,
int streamId,
java.lang.String channelUri,
AeronClient aeronClient,
long clientLivenessTimeoutNs)
public long registrationId()
public int streamId()
public java.lang.String uri()
public ReceiveChannelEndpoint channelEndpoint()
public boolean isReliable()
public boolean matches(NetworkPublication publication)
public boolean matches(ReceiveChannelEndpoint channelEndpoint, int streamId)
public boolean matches(int streamId)
public abstract void link(java.lang.Object source,
org.agrona.concurrent.status.ReadablePosition position)
public abstract void unlink(java.lang.Object source)
public abstract void close()
public void onTimeEvent(long timeNs,
DriverConductor conductor)
DriverManagedResourceonTimeEvent in interface DriverManagedResourcetimeNs - now in nanosecondsconductor - to inform of any state transitionspublic boolean hasReachedEndOfLife()
DriverManagedResourcehasReachedEndOfLife in interface DriverManagedResourcepublic void timeOfLastStateChange(long time)
timeOfLastStateChange in interface org.agrona.ManagedResourcepublic long timeOfLastStateChange()
timeOfLastStateChange in interface org.agrona.ManagedResourcepublic void delete()
delete in interface org.agrona.ManagedResourceCopyright © 2014 - 2016 Real Logic Ltd. All Rights Reserved.