Spring Data Key-Value

org.springframework.data.keyvalue.riak.core
Class RiakQosParameters

java.lang.Object
  extended by org.springframework.data.keyvalue.riak.core.RiakQosParameters
All Implemented Interfaces:
QosParameters

public class RiakQosParameters
extends Object
implements QosParameters

A generic class for specifying Quality Of Service parameters on operations.

Author:
J. Brisbin <[email protected]>

Field Summary
 Object durableWriteThreshold
           
 Object readThreshold
           
 Object writeThreshold
           
 
Constructor Summary
RiakQosParameters()
           
 
Method Summary
<T> T
getDurableWriteThreshold()
          Instruct the server on the durable write threshold.
<T> T
getReadThreshold()
          Instruct the server on the read threshold.
<T> T
getWriteThreshold()
          Instruct the server on the normal write threshold.
<T> void
setDurableWriteThreshold(T durableWriteThreshold)
           
<T> void
setReadThreshold(T readThreshold)
           
<T> void
setWriteThreshold(T writeThreshold)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

readThreshold

public Object readThreshold

writeThreshold

public Object writeThreshold

durableWriteThreshold

public Object durableWriteThreshold
Constructor Detail

RiakQosParameters

public RiakQosParameters()
Method Detail

setReadThreshold

public <T> void setReadThreshold(T readThreshold)

setWriteThreshold

public <T> void setWriteThreshold(T writeThreshold)

setDurableWriteThreshold

public <T> void setDurableWriteThreshold(T durableWriteThreshold)

getReadThreshold

public <T> T getReadThreshold()
Description copied from interface: QosParameters
Instruct the server on the read threshold.

Specified by:
getReadThreshold in interface QosParameters
Returns:

getWriteThreshold

public <T> T getWriteThreshold()
Description copied from interface: QosParameters
Instruct the server on the normal write threshold.

Specified by:
getWriteThreshold in interface QosParameters
Returns:

getDurableWriteThreshold

public <T> T getDurableWriteThreshold()
Description copied from interface: QosParameters
Instruct the server on the durable write threshold.

Specified by:
getDurableWriteThreshold in interface QosParameters
Returns:

Spring Data Key-Value

Copyright © 2010-2011 SpringSource. All Rights Reserved.