ActorBase.onPreActorMethodAsync(ActorMethodContext actorMethodContext) Method

Definition

This method is invoked by actor runtime just before invoking an actor method. Override this method for performing any actions prior to an actor method is invoked.

protected CompletableFuture<?> onPreActorMethodAsync(ActorMethodContext actorMethodContext)
Parameters
actorMethodContext
ActorMethodContext

An ActorMethodContext describing the method that will be invoked by actor runtime after this method finishes.

Returns
CompletableFuture<?>

A CompletableFuture representing pre-actor-method operation. <b>Remarks:</b>This method is invoked by actor runtime prior to: <ul> <li>Invoking an actor interface method when a client request comes.</li> <li>Invoking a method on {@link Remindable} interface when a reminder fires.</li> <li>Invoking a timer callback when timer fires.</li> </ul>