org.elasticsearch.transport
Class TransportRequestOptions
java.lang.Object
org.elasticsearch.transport.TransportRequestOptions
public class TransportRequestOptions
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY
public static final TransportRequestOptions EMPTY
TransportRequestOptions
public TransportRequestOptions()
options
public static TransportRequestOptions options()
withTimeout
public TransportRequestOptions withTimeout(long timeout)
withTimeout
public TransportRequestOptions withTimeout(TimeValue timeout)
withCompress
public TransportRequestOptions withCompress(boolean compress)
withType
public TransportRequestOptions withType(TransportRequestOptions.Type type)
withHighType
public TransportRequestOptions withHighType()
- A request that requires very low latency. Usually reserved for ping requests with very small payload.
withMedType
public TransportRequestOptions withMedType()
- The typical requests flows go through this one.
withLowType
public TransportRequestOptions withLowType()
- Batch oriented (big payload) based requests use this one.
timeout
public TimeValue timeout()
compress
public boolean compress()
type
public TransportRequestOptions.Type type()
Copyright © 2009-2012. All Rights Reserved.