Class FencedPekkoRpcActor<F extends Serializable,T extends org.apache.flink.runtime.rpc.FencedRpcEndpoint<F> & org.apache.flink.runtime.rpc.RpcGateway>
java.lang.Object
org.apache.pekko.actor.AbstractActor
org.apache.flink.runtime.rpc.pekko.FencedPekkoRpcActor<F,T>
- Type Parameters:
F- type of the fencing tokenT- type of the RpcEndpoint
- All Implemented Interfaces:
org.apache.pekko.actor.Actor
public class FencedPekkoRpcActor<F extends Serializable,T extends org.apache.flink.runtime.rpc.FencedRpcEndpoint<F> & org.apache.flink.runtime.rpc.RpcGateway>
extends org.apache.pekko.actor.AbstractActor
Fenced extension of the
PekkoRpcActor. This actor will be started for FencedRpcEndpoint and is responsible for filtering out invalid messages with respect to the
current fencing token.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.pekko.actor.AbstractActor
org.apache.pekko.actor.AbstractActor.ActorContext, org.apache.pekko.actor.AbstractActor.ReceiveNested classes/interfaces inherited from interface org.apache.pekko.actor.Actor
org.apache.pekko.actor.Actor.emptyBehavior$, org.apache.pekko.actor.Actor.ignoringBehavior$ -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.slf4j.Loggerprotected final Tthe endpoint to invoke the methods on. -
Constructor Summary
ConstructorsConstructorDescriptionFencedPekkoRpcActor(T rpcEndpoint, CompletableFuture<Boolean> terminationFuture, int version, long maximumFramesize, boolean forceSerialization, ClassLoader flinkClassLoader, Map<String, String> loggingContext) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pekko.actor.AbstractActor.Receiveprotected ObjectenvelopeSelfMessage(Object message) Hook to envelope self messages.protected voidhandleRpcMessage(Object message) voidpostStop()protected voidsendErrorIfSender(Throwable throwable) Send throwable to sender if the sender is specified.Methods inherited from class org.apache.pekko.actor.AbstractActor
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, emptyBehavior, getContext, getSelf, getSender, org$apache$pekko$actor$Actor$_setter_$context_$eq, org$apache$pekko$actor$Actor$_setter_$self_$eq, postRestart, preRestart, preRestart, preStart, receive, receiveBuilder, self, sender, supervisorStrategy, unhandled
-
Field Details
-
Constructor Details
-
FencedPekkoRpcActor
public FencedPekkoRpcActor(T rpcEndpoint, CompletableFuture<Boolean> terminationFuture, int version, long maximumFramesize, boolean forceSerialization, ClassLoader flinkClassLoader, Map<String, String> loggingContext)
-
-
Method Details
-
handleRpcMessage
-
envelopeSelfMessage
Hook to envelope self messages.- Parameters:
message- to envelope- Returns:
- enveloped message
-
postStop
- Specified by:
postStopin interfaceorg.apache.pekko.actor.Actor- Overrides:
postStopin classorg.apache.pekko.actor.AbstractActor- Throws:
Exception
-
createReceive
public org.apache.pekko.actor.AbstractActor.Receive createReceive()- Specified by:
createReceivein classorg.apache.pekko.actor.AbstractActor
-
sendErrorIfSender
Send throwable to sender if the sender is specified.- Parameters:
throwable- to send to the sender
-