ActorBase.onPreActorMethodAsync(ActorMethodContext actorMethodContext) 方法

定义

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.

Remarks:This method is invoked by actor runtime prior to:

  • Invoking an actor interface method when a client request comes.

  • Invoking a method on Remindable interface when a reminder fires.

  • Invoking a timer callback when timer fires.

protected CompletableFuture<?> onPreActorMethodAsync(ActorMethodContext actorMethodContext)

参数

actorMethodContext
ActorMethodContext

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

返回

CompletableFuture<?>

A CompletableFuture representing pre-actor-method operation.

适用于