Class: Prosody::Configuration
- Inherits:
-
Object
- Object
- Prosody::Configuration
- Defined in:
- lib/prosody/configuration.rb,
sig/configuration.rbs
Overview
Configuration for the Prosody messaging client with type validation
Class Method Summary collapse
-
.config_param(name, converter: ->(v) { v }, default: nil) ⇒ void
Define a typed configuration parameter with optional conversion and default.
-
.duration_converter(v) ⇒ Float
Convert duration values to floating point seconds.
Instance Method Summary collapse
-
#allowed_events ⇒ Array[String]?
Event types the consumer is allowed to process.
- #allowed_events= ⇒ Array[String]
-
#bootstrap_servers ⇒ Array[String]?
Kafka bootstrap server addresses.
- #bootstrap_servers= ⇒ Array[String]
-
#cassandra_datacenter ⇒ String?
Cassandra datacenter for query routing.
- #cassandra_datacenter= ⇒ String
-
#cassandra_keyspace ⇒ String?
Cassandra keyspace name.
- #cassandra_keyspace= ⇒ String
-
#cassandra_nodes ⇒ Array[String]?
Cassandra nodes (hostnames or IPs).
- #cassandra_nodes= ⇒ Array[String]
-
#cassandra_password ⇒ String?
Cassandra authentication password.
- #cassandra_password= ⇒ String
-
#cassandra_rack ⇒ String?
Cassandra rack for topology-aware routing.
- #cassandra_rack= ⇒ String
-
#cassandra_retention ⇒ Float?
Cassandra data retention period (seconds).
- #cassandra_retention= ⇒ Float
-
#cassandra_user ⇒ String?
Cassandra authentication user.
- #cassandra_user= ⇒ String
-
#commit_interval ⇒ Float?
Interval between offset commit operations (seconds).
- #commit_interval= ⇒ Float
-
#defer_base ⇒ Float?
Defer base backoff delay (seconds).
- #defer_base= ⇒ Float
-
#defer_enabled ⇒ Boolean?
Deferral enabled.
- #defer_enabled= ⇒ Boolean
-
#defer_failure_threshold ⇒ Float?
Defer failure threshold (0.0 to 1.0).
- #defer_failure_threshold= ⇒ Float
-
#defer_failure_window ⇒ Float?
Defer failure window (seconds).
- #defer_failure_window= ⇒ Float
-
#defer_max_delay ⇒ Float?
Defer maximum delay (seconds).
- #defer_max_delay= ⇒ Float
-
#defer_store_cache_size ⇒ Integer?
Maximum deferred store cache entries.
- #defer_store_cache_size= ⇒ Integer
-
#failure_topic ⇒ String?
Topic to send failed messages to.
- #failure_topic= ⇒ String
-
#group_id ⇒ String?
Kafka consumer group ID.
- #group_id= ⇒ String
-
#idempotence_cache_size ⇒ Integer?
Size of the cache used for message idempotence.
- #idempotence_cache_size= ⇒ Integer
-
#idempotence_ttl ⇒ Float?
TTL for deduplication records in Cassandra (in seconds).
- #idempotence_ttl= ⇒ Float
-
#idempotence_version ⇒ String?
Version string for cache-busting deduplication hashes.
- #idempotence_version= ⇒ String
-
#initialize(kwargs = {}) ⇒ Configuration
constructor
Create a new configuration with initial values.
-
#loader_cache_size ⇒ Integer?
Maximum messages retained by the shared Kafka loader.
- #loader_cache_size= ⇒ Integer
-
#loader_discard_threshold ⇒ Integer?
Sequential-read distance before the loader seeks.
- #loader_discard_threshold= ⇒ Integer
-
#loader_seek_timeout ⇒ Float?
Kafka loader seek timeout (seconds).
- #loader_seek_timeout= ⇒ Float
-
#max_concurrency ⇒ Integer?
Maximum number of concurrent message processing tasks.
- #max_concurrency= ⇒ Integer
-
#max_retries ⇒ Integer?
Maximum number of retry attempts.
- #max_retries= ⇒ Integer
-
#max_retry_delay ⇒ Float?
Maximum delay between retries (seconds).
- #max_retry_delay= ⇒ Float
-
#max_uncommitted ⇒ Integer?
Maximum messages to process before committing offsets.
- #max_uncommitted= ⇒ Integer
-
#message_spans ⇒ String?
Span linking for message execution spans ('child' or 'follows_from').
- #message_spans= ⇒ String
-
#mock ⇒ Boolean?
Use mock Kafka implementation for testing.
- #mock= ⇒ Boolean
-
#mode ⇒ Symbol?
Operation mode: :pipeline, :low_latency, or :best_effort.
- #mode= ⇒ Symbol
-
#monopolization_cache_size ⇒ Integer?
Monopolization cache size.
- #monopolization_cache_size= ⇒ Integer
-
#monopolization_enabled ⇒ Boolean?
Monopolization detection enabled.
- #monopolization_enabled= ⇒ Boolean
-
#monopolization_threshold ⇒ Float?
Monopolization detection threshold (0.0 to 1.0).
- #monopolization_threshold= ⇒ Float
-
#monopolization_window ⇒ Float?
Monopolization detection window (seconds).
- #monopolization_window= ⇒ Float
-
#peer_advertised_connect ⇒ String?
Connect URI for remote peers.
- #peer_advertised_connect= ⇒ String
-
#peer_bind_address ⇒ String?
Address for the peer listener.
- #peer_bind_address= ⇒ String
-
#peer_cache_capacity ⇒ Integer?
Peer cache capacity.
- #peer_cache_capacity= ⇒ Integer
-
#peer_network_name ⇒ String?
Network name for direct routes.
- #peer_network_name= ⇒ String
-
#peer_registration_ttl ⇒ Float?
Peer registration lease.
- #peer_registration_ttl= ⇒ Float
-
#poll_interval ⇒ Float?
Interval between Kafka poll operations (seconds).
- #poll_interval= ⇒ Float
-
#probe_port ⇒ Integer, ...
Health probe port configuration (port number, false, or nil).
- #probe_port= ⇒ Integer, ...
-
#retry_base ⇒ Float?
Base delay for retry operations (seconds).
- #retry_base= ⇒ Float
-
#scheduler_cache_size ⇒ Integer?
Scheduler: cache size for per-key virtual time.
- #scheduler_cache_size= ⇒ Integer
-
#scheduler_failure_weight ⇒ Float?
Scheduler: failure/retry task weight (0.0 to 1.0).
- #scheduler_failure_weight= ⇒ Float
-
#scheduler_max_wait ⇒ Float?
Scheduler: max wait for urgency boost (seconds).
- #scheduler_max_wait= ⇒ Float
-
#scheduler_wait_weight ⇒ Float?
Scheduler: wait time priority weight.
- #scheduler_wait_weight= ⇒ Float
-
#send_timeout ⇒ Float?
Maximum time to wait for a send operation (seconds).
- #send_timeout= ⇒ Float
-
#shutdown_timeout ⇒ Float?
Maximum time to wait for clean shutdown (seconds).
- #shutdown_timeout= ⇒ Float
-
#slab_size ⇒ Float?
Timer slab partitioning duration (seconds).
- #slab_size= ⇒ Float
-
#source_system ⇒ String?
Identifier for the system producing messages.
- #source_system= ⇒ String
-
#stall_threshold ⇒ Float?
Time threshold for detecting stalled consumers (seconds).
- #stall_threshold= ⇒ Float
-
#state_cache_dir ⇒ String?
Root directory for the local keyed-state cache.
- #state_cache_dir= ⇒ String
-
#state_collections ⇒ Array[untyped]?
Keyed-state collections to register before subscribe.
- #state_collections= ⇒ Array[untyped]
-
#state_owned_cache_size ⇒ String?
Capacity of the owning keyed-state cache.
- #state_owned_cache_size= ⇒ String
-
#state_read_cache ⇒ Float, ...
Default published-read cache TTL in seconds, or false to bypass it.
- #state_read_cache= ⇒ Float, false
-
#state_read_cache_size ⇒ String?
Capacity of the published-state read cache.
- #state_read_cache_size= ⇒ String
-
#state_recovery_delay ⇒ Float?
Delay in whole seconds between staging a provisional cell and the recovery sweep.
- #state_recovery_delay= ⇒ Float
-
#subscribed_topics ⇒ Array[String]?
Kafka topics to subscribe to.
- #subscribed_topics= ⇒ Array[String]
-
#subsystem ⇒ String?
Subsystem under which published JSON collections are advertised.
- #subsystem= ⇒ String
-
#telemetry_enabled ⇒ Boolean?
Whether the telemetry emitter is enabled.
- #telemetry_enabled= ⇒ Boolean
-
#telemetry_topic ⇒ String?
Kafka topic to produce internal telemetry events to.
- #telemetry_topic= ⇒ String
-
#timeout ⇒ Float?
Handler execution timeout (seconds).
- #timeout= ⇒ Float
-
#timer_spans ⇒ String?
Span linking for timer execution spans ('child' or 'follows_from').
- #timer_spans= ⇒ String
-
#to_hash ⇒ Hash[Symbol, untyped]
Convert configuration to a hash with non-nil values only.
Constructor Details
#initialize(options) ⇒ void #initialize(options) ⇒ void
Create a new configuration with initial values
63 64 65 66 67 |
# File 'lib/prosody/configuration.rb', line 63 def initialize(kwargs = {}) @config = {} kwargs.each { |k, v| public_send(:"#{k}=", v) } yield self if block_given? end |
Class Method Details
.config_param(name, converter: ->(v) { v }, default: nil) ⇒ void
This method returns an undefined value.
Define a typed configuration parameter with optional conversion and default
34 35 36 37 38 |
# File 'lib/prosody/configuration.rb', line 34 def self.config_param(name, converter: ->(v) { v }, default: nil) name_sym = name.to_sym define_method(name) { @config.key?(name_sym) ? @config[name_sym] : default } define_method(:"#{name}=") { |value| @config[name_sym] = value.nil? ? nil : converter.call(value) } end |
.duration_converter(v) ⇒ Float
Convert duration values to floating point seconds
48 49 50 51 52 53 54 55 56 |
# File 'lib/prosody/configuration.rb', line 48 def self.duration_converter(v) if defined?(ActiveSupport::Duration) && v.is_a?(ActiveSupport::Duration) v.to_f elsif v.is_a?(Numeric) v.to_f else raise ArgumentError, "Invalid type for duration: #{v.inspect}" end end |
Instance Method Details
#allowed_events ⇒ Array[String]?
Event types the consumer is allowed to process
39 |
# File 'sig/configuration.rbs', line 39
def allowed_events: () -> Array[String]?
|
#allowed_events= ⇒ Array[String]
40 |
# File 'sig/configuration.rbs', line 40
def allowed_events=: (String | _ToA[String]) -> Array[String]
|
#bootstrap_servers ⇒ Array[String]?
Kafka bootstrap server addresses
31 |
# File 'sig/configuration.rbs', line 31
def bootstrap_servers: () -> Array[String]?
|
#bootstrap_servers= ⇒ Array[String]
32 |
# File 'sig/configuration.rbs', line 32
def bootstrap_servers=: (String | _ToA[String]) -> Array[String]
|
#cassandra_datacenter ⇒ String?
Cassandra datacenter for query routing
147 |
# File 'sig/configuration.rbs', line 147
def cassandra_datacenter: () -> String?
|
#cassandra_datacenter= ⇒ String
148 |
# File 'sig/configuration.rbs', line 148
def cassandra_datacenter=: (_ToS) -> String
|
#cassandra_keyspace ⇒ String?
Cassandra keyspace name
143 |
# File 'sig/configuration.rbs', line 143
def cassandra_keyspace: () -> String?
|
#cassandra_keyspace= ⇒ String
144 |
# File 'sig/configuration.rbs', line 144
def cassandra_keyspace=: (_ToS) -> String
|
#cassandra_nodes ⇒ Array[String]?
Cassandra nodes (hostnames or IPs)
139 |
# File 'sig/configuration.rbs', line 139
def cassandra_nodes: () -> Array[String]?
|
#cassandra_nodes= ⇒ Array[String]
140 |
# File 'sig/configuration.rbs', line 140
def cassandra_nodes=: (String | _ToA[String]) -> Array[String]
|
#cassandra_password ⇒ String?
Cassandra authentication password
159 |
# File 'sig/configuration.rbs', line 159
def cassandra_password: () -> String?
|
#cassandra_password= ⇒ String
160 |
# File 'sig/configuration.rbs', line 160
def cassandra_password=: (_ToS) -> String
|
#cassandra_rack ⇒ String?
Cassandra rack for topology-aware routing
151 |
# File 'sig/configuration.rbs', line 151
def cassandra_rack: () -> String?
|
#cassandra_rack= ⇒ String
152 |
# File 'sig/configuration.rbs', line 152
def cassandra_rack=: (_ToS) -> String
|
#cassandra_retention ⇒ Float?
Cassandra data retention period (seconds)
163 |
# File 'sig/configuration.rbs', line 163
def cassandra_retention: () -> Float?
|
#cassandra_retention= ⇒ Float
164 |
# File 'sig/configuration.rbs', line 164
def cassandra_retention=: (Numeric) -> Float
|
#cassandra_user ⇒ String?
Cassandra authentication user
155 |
# File 'sig/configuration.rbs', line 155
def cassandra_user: () -> String?
|
#cassandra_user= ⇒ String
156 |
# File 'sig/configuration.rbs', line 156
def cassandra_user=: (_ToS) -> String
|
#commit_interval ⇒ Float?
Interval between offset commit operations (seconds)
63 |
# File 'sig/configuration.rbs', line 63
def commit_interval: () -> Float?
|
#commit_interval= ⇒ Float
64 |
# File 'sig/configuration.rbs', line 64
def commit_interval=: (Numeric) -> Float
|
#defer_base ⇒ Float?
Defer base backoff delay (seconds)
207 |
# File 'sig/configuration.rbs', line 207
def defer_base: () -> Float?
|
#defer_base= ⇒ Float
208 |
# File 'sig/configuration.rbs', line 208
def defer_base=: (Numeric) -> Float
|
#defer_enabled ⇒ Boolean?
Deferral enabled
203 |
# File 'sig/configuration.rbs', line 203
def defer_enabled: () -> bool?
|
#defer_enabled= ⇒ Boolean
204 |
# File 'sig/configuration.rbs', line 204
def defer_enabled=: (untyped) -> bool
|
#defer_failure_threshold ⇒ Float?
Defer failure threshold (0.0 to 1.0)
215 |
# File 'sig/configuration.rbs', line 215
def defer_failure_threshold: () -> Float?
|
#defer_failure_threshold= ⇒ Float
216 |
# File 'sig/configuration.rbs', line 216
def defer_failure_threshold=: (Numeric) -> Float
|
#defer_failure_window ⇒ Float?
Defer failure window (seconds)
219 |
# File 'sig/configuration.rbs', line 219
def defer_failure_window: () -> Float?
|
#defer_failure_window= ⇒ Float
220 |
# File 'sig/configuration.rbs', line 220
def defer_failure_window=: (Numeric) -> Float
|
#defer_max_delay ⇒ Float?
Defer maximum delay (seconds)
211 |
# File 'sig/configuration.rbs', line 211
def defer_max_delay: () -> Float?
|
#defer_max_delay= ⇒ Float
212 |
# File 'sig/configuration.rbs', line 212
def defer_max_delay=: (Numeric) -> Float
|
#defer_store_cache_size ⇒ Integer?
Maximum deferred store cache entries. Env: PROSODY_DEFER_STORE_CACHE_SIZE
223 |
# File 'sig/configuration.rbs', line 223
def defer_store_cache_size: () -> Integer?
|
#defer_store_cache_size= ⇒ Integer
224 |
# File 'sig/configuration.rbs', line 224
def defer_store_cache_size=: (Integer | _ToInt) -> Integer
|
#failure_topic ⇒ String?
Topic to send failed messages to
127 |
# File 'sig/configuration.rbs', line 127
def failure_topic: () -> String?
|
#failure_topic= ⇒ String
128 |
# File 'sig/configuration.rbs', line 128
def failure_topic=: (_ToS) -> String
|
#group_id ⇒ String?
Kafka consumer group ID
99 |
# File 'sig/configuration.rbs', line 99
def group_id: () -> String?
|
#group_id= ⇒ String
100 |
# File 'sig/configuration.rbs', line 100
def group_id=: (_ToS) -> String
|
#idempotence_cache_size ⇒ Integer?
Size of the cache used for message idempotence
75 |
# File 'sig/configuration.rbs', line 75
def idempotence_cache_size: () -> Integer?
|
#idempotence_cache_size= ⇒ Integer
76 |
# File 'sig/configuration.rbs', line 76
def idempotence_cache_size=: (Integer | _ToInt) -> Integer
|
#idempotence_ttl ⇒ Float?
TTL for deduplication records in Cassandra (in seconds)
83 |
# File 'sig/configuration.rbs', line 83
def idempotence_ttl: () -> Float?
|
#idempotence_ttl= ⇒ Float
84 |
# File 'sig/configuration.rbs', line 84
def idempotence_ttl=: (Numeric) -> Float
|
#idempotence_version ⇒ String?
Version string for cache-busting deduplication hashes
79 |
# File 'sig/configuration.rbs', line 79
def idempotence_version: () -> String?
|
#idempotence_version= ⇒ String
80 |
# File 'sig/configuration.rbs', line 80
def idempotence_version=: (_ToS) -> String
|
#loader_cache_size ⇒ Integer?
Maximum messages retained by the shared Kafka loader. Env: PROSODY_LOADER_CACHE_SIZE. Default: 1024
227 |
# File 'sig/configuration.rbs', line 227
def loader_cache_size: () -> Integer?
|
#loader_cache_size= ⇒ Integer
228 |
# File 'sig/configuration.rbs', line 228
def loader_cache_size=: (Integer | _ToInt) -> Integer
|
#loader_discard_threshold ⇒ Integer?
Sequential-read distance before the loader seeks. Env: PROSODY_LOADER_DISCARD_THRESHOLD. Default: 100
235 |
# File 'sig/configuration.rbs', line 235
def loader_discard_threshold: () -> Integer?
|
#loader_discard_threshold= ⇒ Integer
236 |
# File 'sig/configuration.rbs', line 236
def loader_discard_threshold=: (Integer | _ToInt) -> Integer
|
#loader_seek_timeout ⇒ Float?
Kafka loader seek timeout (seconds). Env: PROSODY_LOADER_SEEK_TIMEOUT. Default: 30
231 |
# File 'sig/configuration.rbs', line 231
def loader_seek_timeout: () -> Float?
|
#loader_seek_timeout= ⇒ Float
232 |
# File 'sig/configuration.rbs', line 232
def loader_seek_timeout=: (Numeric) -> Float
|
#max_concurrency ⇒ Integer?
Maximum number of concurrent message processing tasks
87 |
# File 'sig/configuration.rbs', line 87
def max_concurrency: () -> Integer?
|
#max_concurrency= ⇒ Integer
88 |
# File 'sig/configuration.rbs', line 88
def max_concurrency=: (Integer | _ToInt) -> Integer
|
#max_retries ⇒ Integer?
Maximum number of retry attempts
95 |
# File 'sig/configuration.rbs', line 95
def max_retries: () -> Integer?
|
#max_retries= ⇒ Integer
96 |
# File 'sig/configuration.rbs', line 96
def max_retries=: (Integer | _ToInt) -> Integer
|
#max_retry_delay ⇒ Float?
Maximum delay between retries (seconds)
71 |
# File 'sig/configuration.rbs', line 71
def max_retry_delay: () -> Float?
|
#max_retry_delay= ⇒ Float
72 |
# File 'sig/configuration.rbs', line 72
def max_retry_delay=: (Numeric) -> Float
|
#max_uncommitted ⇒ Integer?
Maximum messages to process before committing offsets
91 |
# File 'sig/configuration.rbs', line 91
def max_uncommitted: () -> Integer?
|
#max_uncommitted= ⇒ Integer
92 |
# File 'sig/configuration.rbs', line 92
def max_uncommitted=: (Integer | _ToInt) -> Integer
|
#message_spans ⇒ String?
Span linking for message execution spans ('child' or 'follows_from')
251 |
# File 'sig/configuration.rbs', line 251
def message_spans: () -> String?
|
#message_spans= ⇒ String
252 |
# File 'sig/configuration.rbs', line 252
def message_spans=: (_ToS) -> String
|
#mock ⇒ Boolean?
Use mock Kafka implementation for testing
43 |
# File 'sig/configuration.rbs', line 43
def mock: () -> bool?
|
#mock= ⇒ Boolean
44 |
# File 'sig/configuration.rbs', line 44
def mock=: (untyped) -> bool
|
#mode ⇒ Symbol?
Operation mode: :pipeline, :low_latency, or :best_effort
131 |
# File 'sig/configuration.rbs', line 131
def mode: () -> Symbol?
|
#mode= ⇒ Symbol
132 |
# File 'sig/configuration.rbs', line 132
def mode=: (Symbol | String) -> Symbol
|
#monopolization_cache_size ⇒ Integer?
Monopolization cache size
199 |
# File 'sig/configuration.rbs', line 199
def monopolization_cache_size: () -> Integer?
|
#monopolization_cache_size= ⇒ Integer
200 |
# File 'sig/configuration.rbs', line 200
def monopolization_cache_size=: (Integer | _ToInt) -> Integer
|
#monopolization_enabled ⇒ Boolean?
Monopolization detection enabled
187 |
# File 'sig/configuration.rbs', line 187
def monopolization_enabled: () -> bool?
|
#monopolization_enabled= ⇒ Boolean
188 |
# File 'sig/configuration.rbs', line 188
def monopolization_enabled=: (untyped) -> bool
|
#monopolization_threshold ⇒ Float?
Monopolization detection threshold (0.0 to 1.0)
191 |
# File 'sig/configuration.rbs', line 191
def monopolization_threshold: () -> Float?
|
#monopolization_threshold= ⇒ Float
192 |
# File 'sig/configuration.rbs', line 192
def monopolization_threshold=: (Numeric) -> Float
|
#monopolization_window ⇒ Float?
Monopolization detection window (seconds)
195 |
# File 'sig/configuration.rbs', line 195
def monopolization_window: () -> Float?
|
#monopolization_window= ⇒ Float
196 |
# File 'sig/configuration.rbs', line 196
def monopolization_window=: (Numeric) -> Float
|
#peer_advertised_connect ⇒ String?
Connect URI for remote peers. Prosody reads PROSODY_PEER_ADVERTISED_CONNECT when absent.
111 |
# File 'sig/configuration.rbs', line 111
def peer_advertised_connect: () -> String?
|
#peer_advertised_connect= ⇒ String
112 |
# File 'sig/configuration.rbs', line 112
def peer_advertised_connect=: (_ToS) -> String
|
#peer_bind_address ⇒ String?
Address for the peer listener. Prosody reads PROSODY_PEER_BIND_ADDRESS when absent.
107 |
# File 'sig/configuration.rbs', line 107
def peer_bind_address: () -> String?
|
#peer_bind_address= ⇒ String
108 |
# File 'sig/configuration.rbs', line 108
def peer_bind_address=: (_ToS) -> String
|
#peer_cache_capacity ⇒ Integer?
Peer cache capacity. Prosody reads PROSODY_PEER_CACHE_CAPACITY when absent.
119 |
# File 'sig/configuration.rbs', line 119
def peer_cache_capacity: () -> Integer?
|
#peer_cache_capacity= ⇒ Integer
120 |
# File 'sig/configuration.rbs', line 120
def peer_cache_capacity=: (Integer | _ToInt) -> Integer
|
#peer_network_name ⇒ String?
Network name for direct routes. Prosody reads PROSODY_PEER_NETWORK_NAME when absent.
115 |
# File 'sig/configuration.rbs', line 115
def peer_network_name: () -> String?
|
#peer_network_name= ⇒ String
116 |
# File 'sig/configuration.rbs', line 116
def peer_network_name=: (_ToS) -> String
|
#peer_registration_ttl ⇒ Float?
Peer registration lease. Prosody reads PROSODY_PEER_REGISTRATION_TTL when absent.
123 |
# File 'sig/configuration.rbs', line 123
def peer_registration_ttl: () -> Float?
|
#peer_registration_ttl= ⇒ Float
124 |
# File 'sig/configuration.rbs', line 124
def peer_registration_ttl=: (Numeric) -> Float
|
#poll_interval ⇒ Float?
Interval between Kafka poll operations (seconds)
59 |
# File 'sig/configuration.rbs', line 59
def poll_interval: () -> Float?
|
#poll_interval= ⇒ Float
60 |
# File 'sig/configuration.rbs', line 60
def poll_interval=: (Numeric) -> Float
|
#probe_port ⇒ Integer, ...
Health probe port configuration (port number, false, or nil)
135 |
# File 'sig/configuration.rbs', line 135
def probe_port: () -> (Integer | false | nil)
|
#probe_port= ⇒ Integer, ...
136 |
# File 'sig/configuration.rbs', line 136
def probe_port=: (Integer | Symbol | String | false | nil) -> (Integer | false | nil)
|
#retry_base ⇒ Float?
Base delay for retry operations (seconds)
67 |
# File 'sig/configuration.rbs', line 67
def retry_base: () -> Float?
|
#retry_base= ⇒ Float
68 |
# File 'sig/configuration.rbs', line 68
def retry_base=: (Numeric) -> Float
|
#scheduler_cache_size ⇒ Integer?
Scheduler: cache size for per-key virtual time
183 |
# File 'sig/configuration.rbs', line 183
def scheduler_cache_size: () -> Integer?
|
#scheduler_cache_size= ⇒ Integer
184 |
# File 'sig/configuration.rbs', line 184
def scheduler_cache_size=: (Integer | _ToInt) -> Integer
|
#scheduler_failure_weight ⇒ Float?
Scheduler: failure/retry task weight (0.0 to 1.0)
171 |
# File 'sig/configuration.rbs', line 171
def scheduler_failure_weight: () -> Float?
|
#scheduler_failure_weight= ⇒ Float
172 |
# File 'sig/configuration.rbs', line 172
def scheduler_failure_weight=: (Numeric) -> Float
|
#scheduler_max_wait ⇒ Float?
Scheduler: max wait for urgency boost (seconds)
175 |
# File 'sig/configuration.rbs', line 175
def scheduler_max_wait: () -> Float?
|
#scheduler_max_wait= ⇒ Float
176 |
# File 'sig/configuration.rbs', line 176
def scheduler_max_wait=: (Numeric) -> Float
|
#scheduler_wait_weight ⇒ Float?
Scheduler: wait time priority weight
179 |
# File 'sig/configuration.rbs', line 179
def scheduler_wait_weight: () -> Float?
|
#scheduler_wait_weight= ⇒ Float
180 |
# File 'sig/configuration.rbs', line 180
def scheduler_wait_weight=: (Numeric) -> Float
|
#send_timeout ⇒ Float?
Maximum time to wait for a send operation (seconds)
47 |
# File 'sig/configuration.rbs', line 47
def send_timeout: () -> Float?
|
#send_timeout= ⇒ Float
48 |
# File 'sig/configuration.rbs', line 48
def send_timeout=: (Numeric) -> Float
|
#shutdown_timeout ⇒ Float?
Maximum time to wait for clean shutdown (seconds)
55 |
# File 'sig/configuration.rbs', line 55
def shutdown_timeout: () -> Float?
|
#shutdown_timeout= ⇒ Float
56 |
# File 'sig/configuration.rbs', line 56
def shutdown_timeout=: (Numeric) -> Float
|
#slab_size ⇒ Float?
Timer slab partitioning duration (seconds)
167 |
# File 'sig/configuration.rbs', line 167
def slab_size: () -> Float?
|
#slab_size= ⇒ Float
168 |
# File 'sig/configuration.rbs', line 168
def slab_size=: (Numeric) -> Float
|
#source_system ⇒ String?
Identifier for the system producing messages
103 |
# File 'sig/configuration.rbs', line 103
def source_system: () -> String?
|
#source_system= ⇒ String
104 |
# File 'sig/configuration.rbs', line 104
def source_system=: (_ToS) -> String
|
#stall_threshold ⇒ Float?
Time threshold for detecting stalled consumers (seconds)
51 |
# File 'sig/configuration.rbs', line 51
def stall_threshold: () -> Float?
|
#stall_threshold= ⇒ Float
52 |
# File 'sig/configuration.rbs', line 52
def stall_threshold=: (Numeric) -> Float
|
#state_cache_dir ⇒ String?
Root directory for the local keyed-state cache. Falls back to PROSODY_STATE_CACHE_DIR. Must not be an empty string.
271 |
# File 'sig/configuration.rbs', line 271
def state_cache_dir: () -> String?
|
#state_cache_dir= ⇒ String
272 |
# File 'sig/configuration.rbs', line 272
def state_cache_dir=: (_ToS) -> String
|
#state_collections ⇒ Array[untyped]?
Keyed-state collections to register before subscribe. Accepts an array of definition objects (from Prosody.value/map/deque and their message_* siblings) or already-serialized registration hashes.
261 |
# File 'sig/configuration.rbs', line 261
def state_collections: () -> Array[untyped]?
|
#state_collections= ⇒ Array[untyped]
262 |
# File 'sig/configuration.rbs', line 262
def state_collections=: (untyped) -> Array[untyped]
|
#state_owned_cache_size ⇒ String?
Capacity of the owning keyed-state cache. Accepts a human-readable size. Uses PROSODY_STATE_OWNED_CACHE_SIZE when omitted. Otherwise, the engine selects its default.
277 |
# File 'sig/configuration.rbs', line 277
def state_owned_cache_size: () -> String?
|
#state_owned_cache_size= ⇒ String
278 |
# File 'sig/configuration.rbs', line 278
def state_owned_cache_size=: (String | _ToS) -> String
|
#state_read_cache ⇒ Float, ...
Default published-read cache TTL in seconds, or false to bypass it. Uses PROSODY_STATE_READ_CACHE_TTL when omitted, then 5 seconds.
288 |
# File 'sig/configuration.rbs', line 288
def state_read_cache: () -> (Float | false)?
|
#state_read_cache= ⇒ Float, false
289 |
# File 'sig/configuration.rbs', line 289
def state_read_cache=: (Numeric | false) -> (Float | false)
|
#state_read_cache_size ⇒ String?
Capacity of the published-state read cache. Uses PROSODY_STATE_READ_CACHE_SIZE when omitted. It then uses the owned cache size when set, or 1 MiB when both sizes are unset.
283 |
# File 'sig/configuration.rbs', line 283
def state_read_cache_size: () -> String?
|
#state_read_cache_size= ⇒ String
284 |
# File 'sig/configuration.rbs', line 284
def state_read_cache_size=: (String | _ToS) -> String
|
#state_recovery_delay ⇒ Float?
Delay in whole seconds between staging a provisional cell and the recovery sweep. Falls back to PROSODY_STATE_RECOVERY_DELAY (read by core).
293 |
# File 'sig/configuration.rbs', line 293
def state_recovery_delay: () -> Float?
|
#state_recovery_delay= ⇒ Float
294 |
# File 'sig/configuration.rbs', line 294
def state_recovery_delay=: (Numeric) -> Float
|
#subscribed_topics ⇒ Array[String]?
Kafka topics to subscribe to
35 |
# File 'sig/configuration.rbs', line 35
def subscribed_topics: () -> Array[String]?
|
#subscribed_topics= ⇒ Array[String]
36 |
# File 'sig/configuration.rbs', line 36
def subscribed_topics=: (String | _ToA[String]) -> Array[String]
|
#subsystem ⇒ String?
Subsystem under which published JSON collections are advertised. Uses PROSODY_SUBSYSTEM when omitted. Published collections require it.
266 |
# File 'sig/configuration.rbs', line 266
def subsystem: () -> String?
|
#subsystem= ⇒ String
267 |
# File 'sig/configuration.rbs', line 267
def subsystem=: (_ToS) -> String
|
#telemetry_enabled ⇒ Boolean?
Whether the telemetry emitter is enabled
247 |
# File 'sig/configuration.rbs', line 247
def telemetry_enabled: () -> bool?
|
#telemetry_enabled= ⇒ Boolean
248 |
# File 'sig/configuration.rbs', line 248
def telemetry_enabled=: (untyped) -> bool
|
#telemetry_topic ⇒ String?
Kafka topic to produce internal telemetry events to
243 |
# File 'sig/configuration.rbs', line 243
def telemetry_topic: () -> String?
|
#telemetry_topic= ⇒ String
244 |
# File 'sig/configuration.rbs', line 244
def telemetry_topic=: (_ToS) -> String
|
#timeout ⇒ Float?
Handler execution timeout (seconds)
239 |
# File 'sig/configuration.rbs', line 239
def timeout: () -> Float?
|
#timeout= ⇒ Float
240 |
# File 'sig/configuration.rbs', line 240
def timeout=: (Numeric) -> Float
|
#timer_spans ⇒ String?
Span linking for timer execution spans ('child' or 'follows_from')
255 |
# File 'sig/configuration.rbs', line 255
def timer_spans: () -> String?
|
#timer_spans= ⇒ String
256 |
# File 'sig/configuration.rbs', line 256
def timer_spans=: (_ToS) -> String
|
#to_hash ⇒ Hash[Symbol, untyped]
Convert configuration to a hash with non-nil values only
392 393 394 |
# File 'lib/prosody/configuration.rb', line 392 def to_hash @config.dup.compact end |