public class EndpointWriter extends EndpointActor
Modifier and Type | Class and Description |
---|---|
static class |
EndpointWriter.AckIdleCheckTimer$ |
static class |
EndpointWriter.BackoffTimer$ |
static class |
EndpointWriter.FlushAndStop$ |
static class |
EndpointWriter.Handle |
static class |
EndpointWriter.Handle$ |
static class |
EndpointWriter.OutboundAck |
static class |
EndpointWriter.OutboundAck$ |
static class |
EndpointWriter.StoppedReading |
static class |
EndpointWriter.StoppedReading$ |
static class |
EndpointWriter.StopReading |
static class |
EndpointWriter.StopReading$ |
static class |
EndpointWriter.TakeOver
This message signals that the current association maintained by the local EndpointWriter and EndpointReader is
to be overridden by a new inbound association.
|
static class |
EndpointWriter.TakeOver$ |
static class |
EndpointWriter.TookOver |
static class |
EndpointWriter.TookOver$ |
Actor.emptyBehavior$, Actor.ignoringBehavior$
Constructor and Description |
---|
EndpointWriter(scala.Option<AkkaProtocolHandle> handleOrActive,
Address localAddress,
Address remoteAddress,
scala.Option<java.lang.Object> refuseUid,
AkkaProtocolTransport transport,
RemoteSettings settings,
AkkaPduCodec codec,
java.util.concurrent.ConcurrentHashMap<EndpointManager.Link,EndpointManager.ResendState> receiveBuffers,
scala.Option<ActorRef> reliableDeliverySupervisor) |
Modifier and Type | Method and Description |
---|---|
scala.concurrent.duration.Deadline |
ackDeadline() |
Cancellable |
ackIdleTimer() |
long |
adaptiveBackoffNanos() |
void |
adjustAdaptiveBackup() |
protected static void |
akka$actor$Actor$_setter_$context_$eq(ActorContext x$1) |
protected static void |
akka$actor$Actor$_setter_$self_$eq(ActorRef x$1) |
static void |
akka$actor$ActorLogging$$_log_$eq(LoggingAdapter x$1) |
static LoggingAdapter |
akka$actor$ActorLogging$$_log() |
protected static void |
aroundPostRestart(java.lang.Throwable reason) |
protected static void |
aroundPostStop() |
protected static void |
aroundPreRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message) |
protected static void |
aroundPreStart() |
protected static void |
aroundReceive(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive,
java.lang.Object msg) |
MessageDispatcher |
backoffDispatcher() |
void |
becomeWritingOrSendBufferedMessages() |
java.util.LinkedList<java.lang.Object> |
buffer() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
buffering() |
static AkkaPduCodec |
codec() |
static ActorContext |
context() |
void |
enqueueInBuffer(java.lang.Object msg) |
static EventPublisher |
eventPublisher() |
ExtendedActorSystem |
extendedSystem() |
void |
flushAndStop() |
boolean |
fullBackoff() |
int |
fullBackoffCount() |
scala.Option<AkkaProtocolHandle> |
handle() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
handoff() |
boolean |
inbound() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
initializing() |
long |
largeBufferLogTimestamp() |
scala.Option<Ack> |
lastAck() |
static Address |
localAddress() |
static LoggingAdapter |
log() |
int |
maxWriteCount() |
DefaultMessageDispatcher |
msgDispatch() |
scala.concurrent.duration.Deadline |
newAckDeadline() |
int |
noBackoffCount() |
void |
postRestart(java.lang.Throwable reason)
User overridable callback: By default it calls
preStart() . |
void |
postStop()
User overridable callback.
|
static void |
preRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message) |
void |
preStart()
User overridable callback.
|
java.util.LinkedList<EndpointManager.Send> |
prioBuffer() |
static Props |
props(scala.Option<AkkaProtocolHandle> handleOrActive,
Address localAddress,
Address remoteAddress,
scala.Option<java.lang.Object> refuseUid,
AkkaProtocolTransport transport,
RemoteSettings settings,
AkkaPduCodec codec,
java.util.concurrent.ConcurrentHashMap<EndpointManager.Link,EndpointManager.ResendState> receiveBuffers,
scala.Option<ActorRef> reliableDeliverySupervisor) |
RemoteActorRefProvider |
provider() |
static void |
publishDisassociated() |
static void |
publishError(java.lang.Throwable reason,
Logging.LogLevel logLevel) |
scala.Option<ActorRef> |
reader() |
scala.collection.Iterator<java.lang.Object> |
readerId() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
receive()
This defines the initial actor behavior, it must return a partial function
with the actor logic.
|
java.util.concurrent.ConcurrentHashMap<EndpointManager.Link,EndpointManager.ResendState> |
receiveBuffers() |
scala.Option<ActorRef> |
reliableDeliverySupervisor() |
static Address |
remoteAddress() |
RemoteMetrics |
remoteMetrics() |
void |
scheduleBackoffTimer() |
static ActorRef |
self() |
void |
sendBufferedMessages() |
static ActorRef |
sender() |
static RemoteSettings |
settings() |
int |
smallBackoffCount() |
AssociationHandle.DisassociateInfo |
stopReason() |
OneForOneStrategy |
supervisorStrategy()
User overridable definition the strategy to use for supervising
child actors.
|
static Transport |
transport() |
void |
unhandled(java.lang.Object message)
User overridable callback.
|
int |
writeCount() |
boolean |
writeSend(EndpointManager.Send s) |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
writing() |
codec, context, eventPublisher, localAddress, publishDisassociated, publishError, remoteAddress, self, settings, transport
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, preRestart, sender
log
public EndpointWriter(scala.Option<AkkaProtocolHandle> handleOrActive, Address localAddress, Address remoteAddress, scala.Option<java.lang.Object> refuseUid, AkkaProtocolTransport transport, RemoteSettings settings, AkkaPduCodec codec, java.util.concurrent.ConcurrentHashMap<EndpointManager.Link,EndpointManager.ResendState> receiveBuffers, scala.Option<ActorRef> reliableDeliverySupervisor)
public static Props props(scala.Option<AkkaProtocolHandle> handleOrActive, Address localAddress, Address remoteAddress, scala.Option<java.lang.Object> refuseUid, AkkaProtocolTransport transport, RemoteSettings settings, AkkaPduCodec codec, java.util.concurrent.ConcurrentHashMap<EndpointManager.Link,EndpointManager.ResendState> receiveBuffers, scala.Option<ActorRef> reliableDeliverySupervisor)
public static final ActorRef sender()
protected static void aroundReceive(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive, java.lang.Object msg)
protected static void aroundPreStart()
protected static void aroundPostStop()
protected static void aroundPreRestart(java.lang.Throwable reason, scala.Option<java.lang.Object> message)
protected static void aroundPostRestart(java.lang.Throwable reason)
public static void preRestart(java.lang.Throwable reason, scala.Option<java.lang.Object> message) throws java.lang.Exception
java.lang.Exception
public static LoggingAdapter log()
public static Address localAddress()
public static Address remoteAddress()
public static Transport transport()
public static RemoteSettings settings()
public static AkkaPduCodec codec()
public static EventPublisher eventPublisher()
public static void publishError(java.lang.Throwable reason, Logging.LogLevel logLevel)
public static void publishDisassociated()
public static LoggingAdapter akka$actor$ActorLogging$$_log()
public static void akka$actor$ActorLogging$$_log_$eq(LoggingAdapter x$1)
public static ActorContext context()
public static final ActorRef self()
protected static void akka$actor$Actor$_setter_$context_$eq(ActorContext x$1)
protected static final void akka$actor$Actor$_setter_$self_$eq(ActorRef x$1)
public java.util.concurrent.ConcurrentHashMap<EndpointManager.Link,EndpointManager.ResendState> receiveBuffers()
public scala.Option<ActorRef> reliableDeliverySupervisor()
public ExtendedActorSystem extendedSystem()
public RemoteMetrics remoteMetrics()
public MessageDispatcher backoffDispatcher()
public scala.Option<ActorRef> reader()
public scala.Option<AkkaProtocolHandle> handle()
public scala.collection.Iterator<java.lang.Object> readerId()
public scala.concurrent.duration.Deadline newAckDeadline()
public scala.concurrent.duration.Deadline ackDeadline()
public scala.Option<Ack> lastAck()
public OneForOneStrategy supervisorStrategy()
Actor
public RemoteActorRefProvider provider()
public DefaultMessageDispatcher msgDispatch()
public boolean inbound()
inbound
in class EndpointActor
public AssociationHandle.DisassociateInfo stopReason()
public java.util.LinkedList<java.lang.Object> buffer()
public java.util.LinkedList<EndpointManager.Send> prioBuffer()
public long largeBufferLogTimestamp()
public Cancellable ackIdleTimer()
public void preStart()
Actor
public void postRestart(java.lang.Throwable reason)
Actor
preStart()
.reason
- the Throwable that caused the restart to happen
Is called right AFTER restart on the newly created Actor to allow reinitialization after an Actor crash.public void postStop()
Actor
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Actor
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> initializing()
public void enqueueInBuffer(java.lang.Object msg)
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> buffering()
public void becomeWritingOrSendBufferedMessages()
public int writeCount()
public int maxWriteCount()
public long adaptiveBackoffNanos()
public boolean fullBackoff()
public int fullBackoffCount()
public int smallBackoffCount()
public int noBackoffCount()
public void adjustAdaptiveBackup()
public void sendBufferedMessages()
public void scheduleBackoffTimer()
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> writing()
public boolean writeSend(EndpointManager.Send s)
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> handoff()
public void unhandled(java.lang.Object message)
Actor
DeathPactException
(in
case of an unhandled Terminated
message) or publishes an UnhandledMessage
to the actor's system's EventStream
message
- (undocumented)public void flushAndStop()