Class TaskOptions.Builder (2.0.0)

public static final class TaskOptions.Builder

Provides static creation methods for TaskOptions.

Inheritance

java.lang.Object > TaskOptions.Builder

Static Methods

withCountdownMillis(long countdownMillis)

public static TaskOptions withCountdownMillis(long countdownMillis)
Parameter
Name Description
countdownMillis long
Returns
Type Description
TaskOptions

withDefaults()

public static TaskOptions withDefaults()

Returns default TaskOptions with default values.

Returns
Type Description
TaskOptions

withEtaMillis(long etaMillis)

public static TaskOptions withEtaMillis(long etaMillis)

Returns default TaskOptions and calls TaskOptions#etaMillis(long).

Parameter
Name Description
etaMillis long
Returns
Type Description
TaskOptions

withHeader(String headerName, String value)

public static TaskOptions withHeader(String headerName, String value)
Parameters
Name Description
headerName String
value String
Returns
Type Description
TaskOptions

withHeaders(Map<String,String> headers)

public static TaskOptions withHeaders(Map<String,String> headers)

Returns default TaskOptions and calls TaskOptions#headers(Map).

Parameter
Name Description
headers Map<String,String>
Returns
Type Description
TaskOptions

withMethod(TaskOptions.Method method)

public static TaskOptions withMethod(TaskOptions.Method method)

Returns default TaskOptions and calls TaskOptions#method(Method).

Parameter
Name Description
method TaskOptions.Method
Returns
Type Description
TaskOptions

withParam(String paramName, byte[] value)

public static TaskOptions withParam(String paramName, byte[] value)
Parameters
Name Description
paramName String
value byte[]
Returns
Type Description
TaskOptions

withParam(String paramName, String value)

public static TaskOptions withParam(String paramName, String value)
Parameters
Name Description
paramName String
value String
Returns
Type Description
TaskOptions

withPayload(byte[] payload, String contentType)

public static TaskOptions withPayload(byte[] payload, String contentType)
Parameters
Name Description
payload byte[]
contentType String
Returns
Type Description
TaskOptions

withPayload(DeferredTask deferredTask)

public static TaskOptions withPayload(DeferredTask deferredTask)
Parameter
Name Description
deferredTask DeferredTask
Returns
Type Description
TaskOptions

withPayload(String payload)

public static TaskOptions withPayload(String payload)

Returns default TaskOptions and calls TaskOptions#payload(String).

Parameter
Name Description
payload String
Returns
Type Description
TaskOptions

withPayload(String payload, String charset)

public static TaskOptions withPayload(String payload, String charset)
Parameters
Name Description
payload String
charset String
Returns
Type Description
TaskOptions

withRetryOptions(RetryOptions retryOptions)

public static TaskOptions withRetryOptions(RetryOptions retryOptions)
Parameter
Name Description
retryOptions RetryOptions
Returns
Type Description
TaskOptions

withTag(byte[] tag)

public static TaskOptions withTag(byte[] tag)

Returns default TaskOptions and calls TaskOptions#tag(byte[]).

Parameter
Name Description
tag byte[]
Returns
Type Description
TaskOptions

withTag(String tag)

public static TaskOptions withTag(String tag)

Returns default TaskOptions and calls TaskOptions#tag(String).

Parameter
Name Description
tag String
Returns
Type Description
TaskOptions

withTaskName(String taskName)

public static TaskOptions withTaskName(String taskName)

Returns default TaskOptions and calls TaskOptions#taskName(String).

Parameter
Name Description
taskName String
Returns
Type Description
TaskOptions

withUrl(String url)

public static TaskOptions withUrl(String url)

Returns default TaskOptions and calls TaskOptions#url(String).

Parameter
Name Description
url String
Returns
Type Description
TaskOptions