F
- type of the fencing tokenT
- type of the RpcEndpointpublic class FencedAkkaRpcActor<F extends Serializable,T extends FencedRpcEndpoint<F> & RpcGateway>
extends akka.actor.AbstractActor
AkkaRpcActor
. This actor will be started for FencedRpcEndpoint
and is responsible for filtering out invalid messages with respect to the
current fencing token.Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
protected T |
rpcEndpoint
the endpoint to invoke the methods on.
|
Constructor and Description |
---|
FencedAkkaRpcActor(T rpcEndpoint,
CompletableFuture<Boolean> terminationFuture,
int version,
long maximumFramesize) |
Modifier and Type | Method and Description |
---|---|
akka.actor.AbstractActor.Receive |
createReceive() |
protected Object |
envelopeSelfMessage(Object message)
Hook to envelope self messages.
|
protected void |
handleRpcMessage(Object message) |
void |
postStop() |
protected void |
sendErrorIfSender(Throwable throwable)
Send throwable to sender if the sender is specified.
|
akka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, emptyBehavior, getContext, getSelf, getSender, postRestart, preRestart, preRestart, preStart, receive, receiveBuilder, self, sender, supervisorStrategy, unhandled
protected final org.slf4j.Logger log
protected final T extends RpcEndpoint & RpcGateway rpcEndpoint
public FencedAkkaRpcActor(T rpcEndpoint, CompletableFuture<Boolean> terminationFuture, int version, long maximumFramesize)
protected void handleRpcMessage(Object message)
protected Object envelopeSelfMessage(Object message)
message
- to envelopepublic void postStop() throws Exception
postStop
in interface akka.actor.Actor
postStop
in class akka.actor.AbstractActor
Exception
public akka.actor.AbstractActor.Receive createReceive()
createReceive
in class akka.actor.AbstractActor
protected void sendErrorIfSender(Throwable throwable)
throwable
- to send to the senderCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.