ExecutorContext Protocol Reference

Declared in ExecutorContext.h

Overview

Responsible for creation of thread executor instances for SDK internal usage. Implementation should not manage created executor life-cycle. Executors will be stopped during “stop” procedure, thus executor instances should not be cached in context or context should check shutdown status before return of cached value.

– initiate required method

Initialize executors.

- (void)initiate

Discussion

Initialize executors.

Declared In

ExecutorContext.h

– stop required method

Stops executors.

- (void)stop

Discussion

Stops executors.

Declared In

ExecutorContext.h

– getLifeCycleExecutor required method

Operation queue that executes lifecycle events/commands of Kaa client.

- (NSOperationQueue *)getLifeCycleExecutor

Discussion

Operation queue that executes lifecycle events/commands of Kaa client.

Declared In

ExecutorContext.h

– getApiExecutor required method

Operation queue that executes user API calls to SDK client. For example, serializing of log records before submit to transport.

- (NSOperationQueue *)getApiExecutor

Discussion

Operation queue that executes user API calls to SDK client. For example, serializing of log records before submit to transport.

Declared In

ExecutorContext.h

– getCallbackExecutor required method

Operation queue that executes callback methods provided by SDK client user.

- (NSOperationQueue *)getCallbackExecutor

Discussion

Operation queue that executes callback methods provided by SDK client user.

Declared In

ExecutorContext.h

– getSheduledExecutor required method

Dispatch queue that executes scheduled tasks(periodically if needed) as log upload.

- (dispatch_queue_t)getSheduledExecutor

Discussion

Dispatch queue that executes scheduled tasks(periodically if needed) as log upload.

Declared In

ExecutorContext.h