org.elasticsearch.transport
Class TransportRequestOptions

java.lang.Object
  extended by org.elasticsearch.transport.TransportRequestOptions

public class TransportRequestOptions
extends Object


Nested Class Summary
static class TransportRequestOptions.Type
           
 
Field Summary
static TransportRequestOptions EMPTY
           
 
Constructor Summary
TransportRequestOptions()
           
 
Method Summary
 boolean compress()
           
static TransportRequestOptions options()
           
 TimeValue timeout()
           
 TransportRequestOptions.Type type()
           
 TransportRequestOptions withCompress(boolean compress)
           
 TransportRequestOptions withHighType()
          A request that requires very low latency.
 TransportRequestOptions withLowType()
          Batch oriented (big payload) based requests use this one.
 TransportRequestOptions withMedType()
          The typical requests flows go through this one.
 TransportRequestOptions withTimeout(long timeout)
           
 TransportRequestOptions withTimeout(TimeValue timeout)
           
 TransportRequestOptions withType(TransportRequestOptions.Type type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final TransportRequestOptions EMPTY
Constructor Detail

TransportRequestOptions

public TransportRequestOptions()
Method Detail

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.