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) |
SubscriptionLink(long registrationId,
ReceiveChannelEndpoint channelEndpoint,
int streamId,
AeronClient aeronClient) |
SubscriptionLink(long registrationId,
UdpChannel spiedChannel,
int streamId,
AeronClient aeronClient) |
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(NetworkPublication publication) |
UdpChannel |
spiedChannel() |
int |
streamId() |
long |
timeOfLastStateChange() |
void |
timeOfLastStateChange(long time) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
consumerPosition, decRef, incRef, producerPosition, unblockAtConsumerPosition
public SubscriptionLink(long registrationId, ReceiveChannelEndpoint channelEndpoint, int streamId, AeronClient aeronClient)
public SubscriptionLink(long registrationId, int streamId, DirectPublication directPublication, org.agrona.concurrent.status.ReadablePosition subscriberPosition, AeronClient aeronClient)
public SubscriptionLink(long registrationId, UdpChannel spiedChannel, int streamId, AeronClient aeronClient)
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(NetworkPublication publication)
public void close()
public void onTimeEvent(long time, DriverConductor conductor)
DriverManagedResource
onTimeEvent
in interface DriverManagedResource
time
- now in nanosecondsconductor
- to inform of any state transitionspublic boolean hasReachedEndOfLife()
DriverManagedResource
hasReachedEndOfLife
in interface DriverManagedResource
public void timeOfLastStateChange(long time)
timeOfLastStateChange
in interface org.agrona.ManagedResource
public long timeOfLastStateChange()
timeOfLastStateChange
in interface org.agrona.ManagedResource
public void delete()
delete
in interface org.agrona.ManagedResource
Copyright © 2014 - 2016 Real Logic Ltd. All Rights Reserved.