public static interface SendOptions.Builder
An instance of this builder can be obtained from a
SendOptions.Builder.Factory
.
Modifier and Type | Interface and Description |
---|---|
static interface |
SendOptions.Builder.Factory
Factory for
SendOptions builders. |
Modifier and Type | Method and Description |
---|---|
SendOptions |
build()
Build options.
|
SendOptions.Builder |
headers(List<String> headers)
Set headers to be sent with the content.
|
SendOptions.Builder |
priority(SendOptions.Priority priority)
Set the priority of content delivery.
|
SendOptions.Builder priority(SendOptions.Priority priority) throws IllegalArgumentException
If not explicitly specified then SendOptions.Priority.NORMAL
will be
assumed.
priority
- the priorityIllegalArgumentException
- if priority
is nullSendOptions.Builder headers(List<String> headers) throws IllegalArgumentException
If no headers are supplied then no headers will be sent with the content.
headers
- list of headersIllegalArgumentException
- if headers
is nullSendOptions build()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.