Skip to main content

API

ReactiveTransportConfigurationโ€‹

Declaration
class ReactiveTransportConfiguration {
final void Function(dynamic frame)? tracer;
final Duration? gracefulTimeout;
final TransportWorkerConfiguration workerConfiguration;
}

Parametersโ€‹

NameTypeDescriptionDefaults
tracervoid Function(dynamic)?Function-tracer for each framenull
gracefulTimeoutDuration?Timeout for graceful shutdownnull
workerConfigurationTransportWorkerConfigurationIOUring parametersTransportDefaults.worker()

ReactiveChannelConfigurationโ€‹

Declaration
class ReactiveChannelConfiguration {
final int initialRequestCount;
final int frameMaxSize;
final int chunksLimit;
final int fragmentSize;
}

Parametersโ€‹

NameTypeDescriptionDefaults
initialRequestCountintHow many items request after channel initialization1
chunkLimitintHow many frames to hold before sending8
frameMaxSizeintMax available frame size before fragmentation5 * 1024 * 1024
fragmentSizeintFrame fragment size during fragmentation10 * 1024 * 1024

ReactiveBrokerConfigurationโ€‹

Declaration
class ReactiveBrokerConfiguration {
final Map<String, ReactiveCodec> codecs;
}

Parametersโ€‹

codecsโ€‹

Registry of the codecs for data mime type and metadata mime type.

Defaults:

Mime typeCodec
application/message-packReactiveMessagePackCodec
application/octet-streamReactiveRawCodec
application/textReactiveUtf8Codec

ReactiveLeaseConfigurationโ€‹

Declaration
class ReactiveLeaseConfiguration {
final Duration timeToLiveRefresh;
final Duration timeToLiveCheck;
final int requests;
}

Parametersโ€‹

NameTypeDescription
timeToLiveRefreshDurationHow often to check lease
timeToLiveCheckDurationLease period
requestsintLease request count

ReactiveSetupConfigurationโ€‹

Declaration
class ReactiveSetupConfiguration {
final String metadataMimeType;
final String dataMimeType;
final Duration keepAliveInterval;
final Duration keepAliveMaxLifetime;
final bool lease;
}

Parametersโ€‹

NameTypeDescriptionDefaults
metadataMimeTypeStringMime type for payloads meta dataapplication/message-pack
dataMimeTypeStringMime type for payloads dataapplication/message-pack
keepAliveIntervalDurationKeep alive packets sending intervalDuration(seconds: 20)
keepAliveMaxLifetimeDurationKeep alive max available time before next frameDuration(seconds: 90)
leaseboolEnable/Disable leasefalse