public class PublicationImage extends java.lang.Object implements NakMessageSender, DriverManagedResource
| Modifier and Type | Field and Description |
|---|---|
protected long |
cleanPosition |
protected long |
lastPacketTimestamp |
protected long |
lastStatusMessagePosition |
protected long |
lastStatusMessageTimestamp |
protected long |
newStatusMessagePosition |
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 |
p46 |
protected long |
p47 |
protected long |
p48 |
protected long |
p49 |
protected long |
p5 |
protected long |
p50 |
protected long |
p51 |
protected long |
p52 |
protected long |
p53 |
protected long |
p54 |
protected long |
p55 |
protected long |
p56 |
protected long |
p57 |
protected long |
p58 |
protected long |
p59 |
protected long |
p6 |
protected long |
p60 |
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,
int initialWindowLength,
RawLog rawLog,
FeedbackDelayGenerator lossFeedbackDelayGenerator,
java.util.List<org.agrona.concurrent.status.ReadablePosition> subscriberPositions,
org.agrona.concurrent.status.Position hwmPosition,
org.agrona.concurrent.status.Position rebuildPosition,
org.agrona.concurrent.NanoClock clock,
SystemCounters systemCounters,
java.net.InetSocketAddress sourceAddress) |
| 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 |
matches(ReceiveChannelEndpoint channelEndpoint,
int streamId)
Does this image match a given
ReceiveChannelEndpoint and stream id? |
void |
onLossDetected(int termId,
int termOffset,
int length)
Called from the
LossDetector when gap is detected. |
void |
onTimeEvent(long time,
DriverConductor conductor)
Inform resource of time passing and pass it DriverConductor to inform of any state transitions.
|
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 p46
protected long p47
protected long p48
protected long p49
protected long p50
protected long p51
protected long p52
protected long p53
protected long p54
protected long p55
protected long p56
protected long p57
protected long p58
protected long p59
protected long p60
protected volatile long newStatusMessagePosition
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 p40
protected long p41
protected long p42
protected long p43
protected long p44
protected long p45
protected long lastPacketTimestamp
protected long lastStatusMessageTimestamp
protected long lastStatusMessagePosition
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,
int initialWindowLength,
RawLog rawLog,
FeedbackDelayGenerator lossFeedbackDelayGenerator,
java.util.List<org.agrona.concurrent.status.ReadablePosition> subscriberPositions,
org.agrona.concurrent.status.Position hwmPosition,
org.agrona.concurrent.status.Position rebuildPosition,
org.agrona.concurrent.NanoClock clock,
SystemCounters systemCounters,
java.net.InetSocketAddress sourceAddress)
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)
Set by Receiver for INIT to ACTIVE to INACTIVE
Set by DriverConductor for INACTIVE to LINGER
status - of the imagepublic void onLossDetected(int termId,
int termOffset,
int length)
LossDetector when gap is detected.onLossDetected in interface NakMessageSendertermId - for the gaptermOffset - for the beginning of the gaplength - of the gapNakMessageSenderpublic 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.