Send feedback
Class TaskOptions.Builder (2.0.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class TaskOptions . Builder
Static Methods
withCountdownMillis(long countdownMillis)
public static TaskOptions withCountdownMillis ( long countdownMillis )
Parameter
Name
Description
countdownMillis
long
withDefaults()
public static TaskOptions withDefaults ()
withEtaMillis(long etaMillis)
public static TaskOptions withEtaMillis ( long etaMillis )
Parameter
Name
Description
etaMillis
long
public static TaskOptions withHeader ( String headerName , String value )
public static TaskOptions withHeaders ( Map<String , String > headers )
withMethod(TaskOptions.Method method)
public static TaskOptions withMethod ( TaskOptions . Method method )
withParam(String paramName, byte[] value)
public static TaskOptions withParam ( String paramName , byte [] value )
Parameters
Name
Description
paramName
String
value
byte []
withParam(String paramName, String value)
public static TaskOptions withParam ( String paramName , String value )
withPayload(byte[] payload, String contentType)
public static TaskOptions withPayload ( byte [] payload , String contentType )
Parameters
Name
Description
payload
byte []
contentType
String
withPayload(DeferredTask deferredTask)
public static TaskOptions withPayload ( DeferredTask deferredTask )
withPayload(String payload)
public static TaskOptions withPayload ( String payload )
Parameter
Name
Description
payload
String
withPayload(String payload, String charset)
public static TaskOptions withPayload ( String payload , String charset )
withRetryOptions(RetryOptions retryOptions)
public static TaskOptions withRetryOptions ( RetryOptions retryOptions )
withTag(byte[] tag)
public static TaskOptions withTag ( byte [] tag )
Parameter
Name
Description
tag
byte []
withTag(String tag)
public static TaskOptions withTag ( String tag )
Parameter
Name
Description
tag
String
withTaskName(String taskName)
public static TaskOptions withTaskName ( String taskName )
Parameter
Name
Description
taskName
String
withUrl(String url)
public static TaskOptions withUrl ( String url )
Parameter
Name
Description
url
String
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-06 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-06 UTC."],[],[]]