ActorConcurrencySettings 类

定义

The method calls on an actor dispatched via in turn with support for logical call context based reentrancy. This class provides the settings to configure the turn based concurrency lock for actors.

public class ActorConcurrencySettings
继承
java.lang.Object
ActorConcurrencySettings

构造函数

ActorConcurrencySettings()

Initializes a new instance of the ActorConcurrencySettings class.

方法

getLockTimeout()

sets timeout for the turn based concurrency lock. If the runtime cannot acquire the lock to dispatch the method call, it will throw ActorConcurrencyLockTimeoutException exception. This exception will unwind the logical call chain and the call will retried up to a configured maximum amount of times. The actual timeout value for the concurrency lock can be higher as the runtime will add a random interval to the supplied value.

getReentrancyMode()

gets Reentrancy mode for actor method calls.

setLockTimeout(Duration timeout)

sets timeout for the turn based concurrency lock. If the runtime cannot acquire the lock to dispatch the method call, it will throw ActorConcurrencyLockTimeoutException exception.

setReentrancyMode(ActorReentrancyMode mode)

sets Reentrancy mode for actor method calls.

适用于