StompServiceOptions class
Configuration options for the STOMP service
Constructors
- StompServiceOptions.new({bool enableServer = true, String? serverName, Duration timeout = StompConstants.defaultTimeout, bool enableAutoReconnect = false, Duration reconnectInterval = const Duration(seconds: 5), int maxReconnectAttempts = 3})
-
const
- StompServiceOptions.clientOnly({Duration timeout = StompConstants.defaultTimeout, bool enableAutoReconnect = false, Duration reconnectInterval = const Duration(seconds: 5), int maxReconnectAttempts = 3})
-
Creates options with server disabled
const
- StompServiceOptions.serverEnabled({String? serverName, Duration timeout = StompConstants.defaultTimeout, bool enableAutoReconnect = false, Duration reconnectInterval = const Duration(seconds: 5), int maxReconnectAttempts = 3})
-
Creates options with server enabled
const
Properties
- enableAutoReconnect → bool
-
Whether to enable automatic reconnection for clients
final
- enableServer → bool
-
Whether to enable the STOMP server
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxReconnectAttempts → int
-
Maximum number of reconnection attempts
final
- reconnectInterval → Duration
-
Interval for automatic reconnection attempts
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverName → String?
-
Server name to advertise
final
- timeout → Duration
-
Default timeout for operations
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited