-
- All Implemented Interfaces:
-
java.util.concurrent.Callable,kotlin.Comparable
public final class ResolveOneLinkTask extends HttpTask<Map<String, String>>
Resolves a short OneLink URL back to its attribution params — the inverse of CreateOneLinkTask.
Accepts standard
*.onelink.mesubdomains (e.g.https://myapp.onelink.me/abc123/summer24) and custom branded domains registered in the OneLink template (e.g.https://links.myapp.com/abc123/summer24, surfaced via isBranded). Used when the app handles an incoming deeplink and needs the marketing context (pid,c,deep_link_value,af_sub*, …) to route the user to the correct screen. Callers MUST check isShortLinkValid first; invalid URIs short-circuit without firing the listener.Delivered via OneLinkDataListener: parsed params on success, original long URL via
onGetOneLinkParametersErroron failure — letting the customer fall back to the unresolved link.shouldCancelOnSdkStopped = falseper RD-62332.Customer entry point:
AFDeepLinkManager.handleDeepLinkCallback.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceResolveOneLinkTask.OneLinkDataListenerListener for short one link attribution response
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisBrandedprivate final BooleanisShortLinkValidprivate ResolveOneLinkTask.OneLinkDataListenerlistenerprivate final Response<Map<String, String>>resultprivate final Set<TaskType>dependenciesprivate final Set<TaskType>softDependenciesprivate final Integerorderprivate LongexecutionTimeprivate ThrowableexecutionErrorprivate volatile IntegerretryCountprivate final TaskTypetype
-
Constructor Summary
Constructors Constructor Description ResolveOneLinkTask(ServiceLocator serviceLocator, UUID uuid, Uri uri)
-
Method Summary
Modifier and Type Method Description final BooleangetIsBranded()final BooleangetIsShortLinkValid()final ResolveOneLinkTask.OneLinkDataListenergetListener()final UnitsetListener(ResolveOneLinkTask.OneLinkDataListener listener)Response<Map<String, String>>getResult()final Set<TaskType>getDependencies()final Set<TaskType>getSoftDependencies()final IntegergetOrder()Chronological order in which the task object was created. final LonggetExecutionTime()final UnitsetExecutionTime(Long executionTime)final ThrowablegetExecutionError()Error which happened during task execution, or nullif the task was successful.final UnitsetExecutionError(Throwable executionError)final IntegergetRetryCount()Number of times the task was executed, INCLUDING the initial try. final UnitsetRetryCount(Integer retryCount)final TaskTypegetType()BooleanshouldRetry()Called each time the task fails, to decide whether to retry by adding back to the queue. -
Methods inherited from class com.appsflyer.internal.components.queue.tasks.HttpTask
addDependency, addSoftDependency, call, compareTo, equals, executionResult, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ResolveOneLinkTask
ResolveOneLinkTask(ServiceLocator serviceLocator, UUID uuid, Uri uri)
-
-
Method Detail
-
getIsBranded
final Boolean getIsBranded()
-
getIsShortLinkValid
final Boolean getIsShortLinkValid()
-
getListener
final ResolveOneLinkTask.OneLinkDataListener getListener()
-
setListener
final Unit setListener(ResolveOneLinkTask.OneLinkDataListener listener)
-
getDependencies
final Set<TaskType> getDependencies()
-
getSoftDependencies
final Set<TaskType> getSoftDependencies()
-
getOrder
final Integer getOrder()
Chronological order in which the task object was created. Required to support natural ordering in the Queue SkipListSet: two tasks of the same type and priority — the first one has the smaller order.
-
getExecutionTime
final Long getExecutionTime()
-
setExecutionTime
final Unit setExecutionTime(Long executionTime)
-
getExecutionError
final Throwable getExecutionError()
Error which happened during task execution, or
nullif the task was successful.
-
setExecutionError
final Unit setExecutionError(Throwable executionError)
-
getRetryCount
final Integer getRetryCount()
Number of times the task was executed, INCLUDING the initial try. E.g. if the task succeeded on the first try this returns 1.
-
setRetryCount
final Unit setRetryCount(Integer retryCount)
-
shouldRetry
Boolean shouldRetry()
Called each time the task fails, to decide whether to retry by adding back to the queue. Returning
truekeeps blocking tasks that depend on this one.
-
-
-
-