public class SingleThreadExecutorContext extends AbstractExecutorContext implements ExecutorContext
DEFAULT_TIMEOUT, DEFAULT_TIMEUNIT
Constructor and Description |
---|
SingleThreadExecutorContext() |
Modifier and Type | Method and Description |
---|---|
ExecutorService |
getApiExecutor()
Executes user API calls to SDK client.
|
ExecutorService |
getCallbackExecutor()
Executes callback methods provided by SDK client user.
|
ExecutorService |
getLifeCycleExecutor()
Executes lifecycle events/commands of Kaa client
|
void |
init()
Initialize executors
|
void |
stop()
Stops executors
|
getTimeout, getTimeunit, shutdownExecutor
public void init()
ExecutorContext
init
in interface ExecutorContext
public void stop()
ExecutorContext
stop
in interface ExecutorContext
public ExecutorService getLifeCycleExecutor()
ExecutorContext
getLifeCycleExecutor
in interface ExecutorContext
public ExecutorService getApiExecutor()
ExecutorContext
getApiExecutor
in interface ExecutorContext
public ExecutorService getCallbackExecutor()
ExecutorContext
getCallbackExecutor
in interface ExecutorContext
Copyright © 2015. All rights reserved.