public class TransportRequestOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TransportRequestOptions.Type |
Modifier and Type | Field and Description |
---|---|
static TransportRequestOptions |
EMPTY |
Constructor and Description |
---|
TransportRequestOptions() |
Modifier and Type | Method and Description |
---|---|
boolean |
compress() |
static TransportRequestOptions |
options() |
TimeValue |
timeout() |
TransportRequestOptions.Type |
type() |
TransportRequestOptions |
withCompress(boolean compress) |
TransportRequestOptions |
withTimeout(long timeout) |
TransportRequestOptions |
withTimeout(TimeValue timeout) |
TransportRequestOptions |
withType(TransportRequestOptions.Type type) |
public static final TransportRequestOptions EMPTY
public static TransportRequestOptions options()
public TransportRequestOptions withTimeout(long timeout)
public TransportRequestOptions withTimeout(TimeValue timeout)
public TransportRequestOptions withCompress(boolean compress)
public TransportRequestOptions withType(TransportRequestOptions.Type type)
public TimeValue timeout()
public boolean compress()
public TransportRequestOptions.Type type()
Copyright © 2009–2015. All rights reserved.