public class SubscriptionLink extends java.lang.Object implements DriverManagedResource
| Constructor and Description |
|---|
SubscriptionLink(long registrationId,
int streamId,
DirectPublication directPublication,
org.agrona.concurrent.status.ReadablePosition subscriberPosition,
AeronClient aeronClient,
long clientLivenessTimeoutNs) |
SubscriptionLink(long registrationId,
ReceiveChannelEndpoint channelEndpoint,
int streamId,
AeronClient aeronClient,
long clientLivenessTimeoutNs) |
SubscriptionLink(long registrationId,
UdpChannel spiedChannel,
int streamId,
AeronClient aeronClient,
long clientLivenessTimeoutNs) |
| Modifier and Type | Method and Description |
|---|---|
void |
addImage(PublicationImage image,
org.agrona.concurrent.status.ReadablePosition position) |
void |
addSpiedPublication(NetworkPublication publication,
org.agrona.concurrent.status.ReadablePosition position) |
ReceiveChannelEndpoint |
channelEndpoint() |
void |
close() |
void |
delete() |
boolean |
hasReachedEndOfLife()
Has resource reached end of its life and should be reclaimed?
|
boolean |
matches(ReceiveChannelEndpoint channelEndpoint,
int streamId) |
boolean |
matches(SendChannelEndpoint channelEndpoint,
int streamId) |
void |
onTimeEvent(long time,
DriverConductor conductor)
Inform resource of time passing and pass it DriverConductor to inform of any state transitions.
|
long |
registrationId() |
void |
removeImage(PublicationImage image) |
void |
removeSpiedPublication() |
UdpChannel |
spiedChannel() |
int |
streamId() |
long |
timeOfLastStateChange() |
void |
timeOfLastStateChange(long time) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconsumerPosition, decRef, incRef, producerPosition, unblockAtConsumerPositionpublic SubscriptionLink(long registrationId,
ReceiveChannelEndpoint channelEndpoint,
int streamId,
AeronClient aeronClient,
long clientLivenessTimeoutNs)
public SubscriptionLink(long registrationId,
int streamId,
DirectPublication directPublication,
org.agrona.concurrent.status.ReadablePosition subscriberPosition,
AeronClient aeronClient,
long clientLivenessTimeoutNs)
public SubscriptionLink(long registrationId,
UdpChannel spiedChannel,
int streamId,
AeronClient aeronClient,
long clientLivenessTimeoutNs)
public long registrationId()
public ReceiveChannelEndpoint channelEndpoint()
public int streamId()
public UdpChannel spiedChannel()
public boolean matches(ReceiveChannelEndpoint channelEndpoint, int streamId)
public boolean matches(SendChannelEndpoint channelEndpoint, int streamId)
public void addImage(PublicationImage image, org.agrona.concurrent.status.ReadablePosition position)
public void removeImage(PublicationImage image)
public void addSpiedPublication(NetworkPublication publication, org.agrona.concurrent.status.ReadablePosition position)
public void removeSpiedPublication()
public void close()
public void onTimeEvent(long time,
DriverConductor conductor)
DriverManagedResourceonTimeEvent in interface DriverManagedResourcetime - 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.