public class PublicationImage extends java.lang.Object implements LossHandler, DriverManagedResource
| Modifier and Type | Field and Description |
|---|---|
protected long |
cleanPosition |
protected long |
lastPacketTimestamp |
protected long |
p1 |
protected long |
p10 |
protected long |
p11 |
protected long |
p12 |
protected long |
p13 |
protected long |
p14 |
protected long |
p15 |
protected long |
p16 |
protected long |
p17 |
protected long |
p18 |
protected long |
p19 |
protected long |
p2 |
protected long |
p20 |
protected long |
p21 |
protected long |
p22 |
protected long |
p23 |
protected long |
p24 |
protected long |
p25 |
protected long |
p26 |
protected long |
p27 |
protected long |
p28 |
protected long |
p29 |
protected long |
p3 |
protected long |
p30 |
protected long |
p31 |
protected long |
p32 |
protected long |
p33 |
protected long |
p34 |
protected long |
p35 |
protected long |
p36 |
protected long |
p37 |
protected long |
p38 |
protected long |
p39 |
protected long |
p4 |
protected long |
p40 |
protected long |
p41 |
protected long |
p42 |
protected long |
p43 |
protected long |
p44 |
protected long |
p45 |
protected long |
p5 |
protected long |
p6 |
protected long |
p7 |
protected long |
p8 |
protected long |
p9 |
| Constructor and Description |
|---|
PublicationImage(long correlationId,
long imageLivenessTimeoutNs,
ReceiveChannelEndpoint channelEndpoint,
java.net.InetSocketAddress controlAddress,
int sessionId,
int streamId,
int initialTermId,
int activeTermId,
int initialTermOffset,
RawLog rawLog,
FeedbackDelayGenerator lossFeedbackDelayGenerator,
org.agrona.concurrent.status.ReadablePosition[] subscriberPositions,
org.agrona.concurrent.status.Position hwmPosition,
org.agrona.concurrent.status.Position rebuildPosition,
org.agrona.concurrent.NanoClock nanoClock,
org.agrona.concurrent.EpochClock epochClock,
SystemCounters systemCounters,
java.net.InetSocketAddress sourceAddress,
CongestionControl congestionControl,
LossReport lossReport,
boolean isReliable) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
channelUriString()
Get the string representation of the channel URI.
|
void |
close() |
long |
correlationId() |
void |
delete() |
boolean |
hasReachedEndOfLife()
Has resource reached end of its life and should be reclaimed?
|
boolean |
isReliable()
Is the stream reliable in that is will NAK for loss or will it gap fill?
|
boolean |
matches(ReceiveChannelEndpoint channelEndpoint,
int streamId)
Does this image match a given
ReceiveChannelEndpoint and stream id? |
void |
onGapDetected(int termId,
int termOffset,
int length)
Called from the
LossDetector when gap is detected by the DriverConductor thread. |
void |
onRttMeasurement(io.aeron.protocol.RttMeasurementFlyweight header,
java.net.InetSocketAddress srcAddress)
Called from the
Receiver upon receiving an RTT Measurement that is a reply. |
void |
onTimeEvent(long timeNs,
DriverConductor conductor)
Inform resource of timeNs passing and pass it DriverConductor to inform of any state transitions.
|
void |
scheduleStatusMessage(long now,
long smPosition,
int receiverWindowLength) |
int |
sessionId()
The session id of the channel from a publisher.
|
io.aeron.driver.PublicationImage.Status |
status()
Return status of the image.
|
void |
status(io.aeron.driver.PublicationImage.Status status)
Set status of the image.
|
int |
streamId()
The stream id of this image within a channel.
|
long |
timeOfLastStateChange() |
void |
timeOfLastStateChange(long time) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconsumerPosition, decRef, incRef, producerPosition, unblockAtConsumerPositionprotected long p31
protected long p32
protected long p33
protected long p34
protected long p35
protected long p36
protected long p37
protected long p38
protected long p39
protected long p40
protected long p41
protected long p42
protected long p43
protected long p44
protected long p45
protected long lastPacketTimestamp
protected long p16
protected long p17
protected long p18
protected long p19
protected long p20
protected long p21
protected long p22
protected long p23
protected long p24
protected long p25
protected long p26
protected long p27
protected long p28
protected long p29
protected long p30
protected long cleanPosition
protected long p1
protected long p2
protected long p3
protected long p4
protected long p5
protected long p6
protected long p7
protected long p8
protected long p9
protected long p10
protected long p11
protected long p12
protected long p13
protected long p14
protected long p15
public PublicationImage(long correlationId,
long imageLivenessTimeoutNs,
ReceiveChannelEndpoint channelEndpoint,
java.net.InetSocketAddress controlAddress,
int sessionId,
int streamId,
int initialTermId,
int activeTermId,
int initialTermOffset,
RawLog rawLog,
FeedbackDelayGenerator lossFeedbackDelayGenerator,
org.agrona.concurrent.status.ReadablePosition[] subscriberPositions,
org.agrona.concurrent.status.Position hwmPosition,
org.agrona.concurrent.status.Position rebuildPosition,
org.agrona.concurrent.NanoClock nanoClock,
org.agrona.concurrent.EpochClock epochClock,
SystemCounters systemCounters,
java.net.InetSocketAddress sourceAddress,
CongestionControl congestionControl,
LossReport lossReport,
boolean isReliable)
public void close()
public long correlationId()
public int sessionId()
public int streamId()
public java.lang.String channelUriString()
public boolean matches(ReceiveChannelEndpoint channelEndpoint, int streamId)
ReceiveChannelEndpoint and stream id?channelEndpoint - to match by identity.streamId - to match on value.public io.aeron.driver.PublicationImage.Status status()
DriverConductor.public void status(io.aeron.driver.PublicationImage.Status status)
Receiver for INIT to ACTIVE to INACTIVE
Set by DriverConductor for INACTIVE to LINGERstatus - of the imagepublic boolean isReliable()
public void onGapDetected(int termId,
int termOffset,
int length)
LossDetector when gap is detected by the DriverConductor thread.onGapDetected in interface LossHandlertermId - for the gaptermOffset - for the beginning of the gaplength - of the gapLossHandlerpublic void scheduleStatusMessage(long now,
long smPosition,
int receiverWindowLength)
public void onRttMeasurement(io.aeron.protocol.RttMeasurementFlyweight header,
java.net.InetSocketAddress srcAddress)
Receiver upon receiving an RTT Measurement that is a reply.header - of the measurementsrcAddress - from the sender of the measurementpublic 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.