The following configuration is provided by the JSON-RPC Handler Event Bundle with PID com.prosyst.mbs.impl.services.jsonrpc.event.JSONPullConfiguration.
Property |
Default Value |
Description |
|---|---|---|
subscriptionMaxAge |
180000 |
Maximum subscription age in seconds. Subscriptions which reach the maximum age are automatically deleted by the server and all relevant client connections (opened web sockets/long poll requests), if there are any, are forced closed by the server. Value -1 means that there is no age limit. |
subscriptionsMaxCount |
10 |
Maximum number of simultaneous subscriptions. No new subscriptions are accepted by the server after the subscriptions maximum count has been reached. Value -1 means that there is no limit on the number of simultaneous subscriptions. |
eventsMaxCount |
100 |
Maximum number of cached events per event subscription. If a new event is locally delivered after a predefined maximum events count is reached then the oldest event in the queue is removed and never delivered to the remote client. Value -1 means that there is no limit on number of cached events. |
errorOnEventsOverload |
true |
If this flag is set to true, an error will be thrown when polling events when event limit is exceeded. |
handlerPriority |
-1 |
The value of the mbs.events.handlerPriority registration property for the org.osg.service.event.EventHandler services that will be registered for each subscription. If not specified, or set to -1, the registration property will not be set. |
ignorePlatformState |
true |
The value of the remote.exported.methods.ignorePlatformState registration property of the RE remote service. If set to false, the service will be accessible only when the platform is in ACTIVE state. |
longPollingRetryCount |
-1 |
Number of retry attempts to send an event via long polling. This counter is per event. If this number is negative, the functionality is disabled and no retry attempts are done, which is the default behavior. |
inactivityTimeout |
-1 |
This property allows you to set an inactivity timeout for the subscriptions. The default - negative value means, that there is no timeout set. If you set a timeout (in milliseconds) and the subscription is not read at least once for the period you have specified, it will be automatically closed. In this way, we can prevent memory leaks caused by buggy applications that do not call a unsubscribe method. |