API reference

PlatformInitializeOptions Class

Options for initializing the platform.

Member Functions

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
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.
Disable the message queue. Call this if you expect to manually pop messages from the queue.
Returns
the current instance of PlatformInitializeOptions
Enable the message queue. By default, the message queue is already enabled.
Returns
the current instance of PlatformInitializeOptions
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
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
Did you find this page helpful?
Thumbs up icon
Thumbs down icon