org.springframework.data.keyvalue.riak.core
Class RiakQosParameters
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
readThreshold
public Object readThreshold
writeThreshold
public Object writeThreshold
durableWriteThreshold
public Object durableWriteThreshold
RiakQosParameters
public RiakQosParameters()
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:
Copyright © 2010-2011 SpringSource. All Rights Reserved.