Provides a LiveSharingClient
.
Public Method Summary
static LiveSharingClient |
getClient(Optional<ExecutorService>
backgroundExecutorService, Optional<ScheduledExecutorService>
scheduledExecutorService)
Returns the singleton instance of
LiveSharingClient .
|
static LiveSharingClient |
getClient()
Returns the singleton instance of
LiveSharingClient .
|
Inherited Method Summary
Public Methods
public static LiveSharingClient getClient (Optional<ExecutorService> backgroundExecutorService, Optional<ScheduledExecutorService> scheduledExecutorService)
Returns the singleton instance of LiveSharingClient
.
Passing in different values backgroundExecutorService
or
scheduledExecutorService
across multiple calls is not recommended and has
no effect.
If empty optionals are provided for the ExecutorService
or
ScheduledExecutorService
the SDK will create its own in their place for
background tasks.
Parameters
backgroundExecutorService | an executor for the SDK to offload various internal tasks including IPC,
callbacks etc. The executor should have a thread pool of size 6 or more for optimal
performance. Using a single-threaded ExecutorService will lead to poor
performance. |
---|---|
scheduledExecutorService | a
ScheduledExecutorService for the SDK to to perform periodic tasks for
synchronization. This can have a single thread without affecting performance. |
public static LiveSharingClient getClient ()
Returns the singleton instance of LiveSharingClient
.