SessionHandlerOptions 类

定义

The OnSession handler processing options.

public class SessionHandlerOptions
继承
java.lang.Object
SessionHandlerOptions

构造函数

SessionHandlerOptions()

Default constructor with default values Default getMaxConcurrentSessions() is 1 Default getMaxConcurrentCallsPerSession() is 1 Default getMaxAutoRenewDuration() is 5 minutes Default isAutoComplete() is true. Default getMessageWaitDuration() is 1 minute

SessionHandlerOptions(int maxConcurrentSessions, boolean autoComplete, Duration maxAutoRenewDuration)
SessionHandlerOptions(int maxConcurrentSessions, int maxConcurrentCallsPerSession, boolean autoComplete, Duration maxAutoRenewDuration)
SessionHandlerOptions(int maxConcurrentSessions, int maxConcurrentCallsPerSession, boolean autoComplete, Duration maxAutoRenewDuration, Duration messageWaitDuration)

方法

getMaxAutoRenewDuration()

Gets the maximum duration within which the lock will be renewed automatically. This value should be greater than the longest message lock duration; for example, the LockDuration Property.

getMaxConcurrentCallsPerSession()

Gets the maximum number of concurrent calls to the callback the message pump should initiate for each session.

getMaxConcurrentSessions()

Gets the maximum number of concurrent sessions that the pump should initiate.

getMessageWaitDuration()

Gets the time to wait for receiving a message. Defaults to 1 minute.

isAutoComplete()

Whether the auto complete is set to true.

toString()

适用于