voldemort.store
Class CompositeVoldemortRequest<K,V>

java.lang.Object
  extended by voldemort.store.CompositeVoldemortRequest<K,V>
Direct Known Subclasses:
CompositeDeleteVoldemortRequest, CompositeGetAllVoldemortRequest, CompositeGetVersionVoldemortRequest, CompositeGetVoldemortRequest, CompositePutVoldemortRequest, CompositeVersionedPutVoldemortRequest

public class CompositeVoldemortRequest<K,V>
extends java.lang.Object

A base class for the different types of Voldemort requests containing all the necessary components


Constructor Summary
CompositeVoldemortRequest(K key, V rawValue, java.lang.Iterable<K> keys, Versioned<V> value, Version version, long timeoutInMs, boolean resolveConflicts, byte operationType)
           
CompositeVoldemortRequest(K key, V rawValue, java.lang.Iterable<K> keys, Versioned<V> value, Version version, long timeoutInMs, boolean resolveConflicts, byte operationType, long requestOriginTimeInMs, RequestRoutingType routingType)
           
 
Method Summary
 java.lang.Iterable<K> getIterableKeys()
           
 K getKey()
           
 byte getOperationType()
           
 V getRawValue()
           
 long getRequestOriginTimeInMs()
           
 long getRoutingTimeoutInMs()
           
 RequestRoutingType getRoutingType()
           
 Versioned<V> getValue()
           
 Version getVersion()
           
 boolean isResolveConflicts()
           
 boolean resolveConflicts()
           
 void setRequestOriginTimeInMs(long requestOriginTimeInMs)
           
 void setResolveConflicts(boolean resolveConflicts)
           
 void setRoutingTimeoutInMs(long timeoutInMs)
           
 void setVersion(Version version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeVoldemortRequest

public CompositeVoldemortRequest(K key,
                                 V rawValue,
                                 java.lang.Iterable<K> keys,
                                 Versioned<V> value,
                                 Version version,
                                 long timeoutInMs,
                                 boolean resolveConflicts,
                                 byte operationType,
                                 long requestOriginTimeInMs,
                                 RequestRoutingType routingType)

CompositeVoldemortRequest

public CompositeVoldemortRequest(K key,
                                 V rawValue,
                                 java.lang.Iterable<K> keys,
                                 Versioned<V> value,
                                 Version version,
                                 long timeoutInMs,
                                 boolean resolveConflicts,
                                 byte operationType)
Method Detail

getKey

public K getKey()

getValue

public Versioned<V> getValue()

getVersion

public Version getVersion()

setVersion

public void setVersion(Version version)

getRoutingTimeoutInMs

public long getRoutingTimeoutInMs()

setRoutingTimeoutInMs

public void setRoutingTimeoutInMs(long timeoutInMs)

resolveConflicts

public boolean resolveConflicts()

getIterableKeys

public java.lang.Iterable<K> getIterableKeys()

getRawValue

public V getRawValue()

getOperationType

public byte getOperationType()

isResolveConflicts

public boolean isResolveConflicts()

setResolveConflicts

public void setResolveConflicts(boolean resolveConflicts)

getRequestOriginTimeInMs

public long getRequestOriginTimeInMs()

setRequestOriginTimeInMs

public void setRequestOriginTimeInMs(long requestOriginTimeInMs)

getRoutingType

public RequestRoutingType getRoutingType()


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu