-
-
Field Summary
Fields Modifier and Type Field Description public final static longDEFAULT_EXECUTION_TIMEOUT
-
Constructor Summary
Constructors Constructor Description HttpTask(TaskType type, Array<TaskType> dependencies, AppsFlyerApiService apiService, SecureDataProvider secureDataProvider, ProxyManager remoteDebugManager, CacheManager cacheManager, String id)HttpTask(TaskType type, Array<TaskType> dependencies, ServiceLocator serviceLocator, String id)HttpTask(TaskType type, Array<TaskType> dependencies, ServiceLocator serviceLocator, String id, String cacheKey)
-
Method Summary
Modifier and Type Method Description Response<Result>getResult()Task should store result of it's execution if applicable and return with this method QueueResultinternalExecute()Execute actual job for the task, this will be called synchronously in the background threadImportant: Implementation much check for thread interruptions to support Task timeout. -
Methods inherited from class com.appsflyer.internal.components.queue.Task
addDependency, addSoftDependency, call, compareTo, equals, executionResult, getDependencies, getExecutionError, getExecutionTime, getOrder, getResult, getRetryCount, getSoftDependencies, getType, hashCode, toString -
Methods inherited from class java.util.concurrent.Callable
call -
Methods inherited from class java.lang.Comparable
compareTo -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HttpTask
HttpTask(TaskType type, Array<TaskType> dependencies, AppsFlyerApiService apiService, SecureDataProvider secureDataProvider, ProxyManager remoteDebugManager, CacheManager cacheManager, String id)
-
HttpTask
HttpTask(TaskType type, Array<TaskType> dependencies, ServiceLocator serviceLocator, String id)
-
-
Method Detail
-
getResult
@Nullable() Response<Result> getResult()
Task should store result of it's execution if applicable and return with this method
-
internalExecute
@NonNull()@CallSuper() QueueResult internalExecute()
Execute actual job for the task, this will be called synchronously in the background thread
Important: Implementation much check for thread interruptions to support Task timeout.See getExecutionTimeout for more details
-
-
-
-