API reference

PlatformInitializeOptions Class

Options for initializing the platform.

Member Functions

boolean isMessageQueueEnabled ( )
By default, this returns true.
Returns
true if the message queue will pop and handle messages at an interval; false if the consumer will be popping the messages manually
Duration getMessageQueueIntervalDuration ( )
Use setMessageQueueIntervalDuration(long, TimeUnit) or setMessageQueueIntervalDuration(Duration) to set this value.
Returns
the duration of the interval at which the message queue will pop and handle messages. By default, this is 250 milliseconds.
PlatformInitializeOptions disableMessageQueue ( )
Disable the message queue. Call this if you expect to manually pop messages from the queue.
See Also
Returns
the current instance of PlatformInitializeOptions
PlatformInitializeOptions enableMessageQueue ( )
Enable the message queue. By default, the message queue is already enabled.
See Also
Returns
the current instance of PlatformInitializeOptions
PlatformInitializeOptions setMessageQueueIntervalDuration
( Duration intervalDuration )
Set the duration of the interval at which the message queue will pop and handle messages.
Parameters
intervalDuration
the interval duration at which the message queue will pop and handle messages.
Returns
the current instance of PlatformInitializeOptions
PlatformInitializeOptions setMessageQueueIntervalDuration
( long durationAmount,
TimeUnit durationUnit )
Set the duration of the interval at which the message queue will pop and handle messages.
Parameters
durationAmount
the duration amount of the interval at which the message queue will pop and handle messages.
durationUnit
the TimeUnit corresponding to the durationAmount.
Returns
the current instance of PlatformInitializeOptions
void enableCowatching ( )
Map< Integer, Boolean > getConfigOptions ( )