|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.basho.riak.client.raw.StoreMeta
public class StoreMeta
Encapsulates the optional parameters for a store operation on Riak
RawClient.store(com.basho.riak.client.IRiakObject, StoreMeta)
Nested Class Summary | |
---|---|
static class |
StoreMeta.Builder
|
Constructor Summary | |
---|---|
StoreMeta(Integer w,
Integer dw,
Integer pw,
Boolean returnBody,
Boolean ifNoneMatch,
Boolean ifNotModified)
Create a StoreMeta, accepts null s for any parameter |
|
StoreMeta(Integer w,
Integer dw,
Integer pw,
Boolean returnBody,
Boolean returnHead,
Boolean ifNoneMatch,
Boolean ifNotModified)
Create a StoreMeta, accepts null s for any parameter |
|
StoreMeta(Quorum w,
Quorum dw,
Quorum pw,
Boolean returnBody,
Boolean returnHead,
Boolean ifNoneMatch,
Boolean ifNotModified)
Create a StoreMeta, accepts null s for any parameter |
Method Summary | |
---|---|
static StoreMeta |
empty()
|
StoreMeta |
etags(String[] etags)
Optional supporting data for ifNoneMatch for the HTTP API |
Quorum |
getDw()
The durable write quorum |
String[] |
getEtags()
|
Boolean |
getIfNoneMatch()
Get the value of the ifNoneMatch parameter |
Boolean |
getIfNotModified()
Get the value of the ifNoneMatch parameter |
Date |
getLastModified()
|
Quorum |
getPw()
Get the value for the pw parameter |
Boolean |
getReturnBody()
Get the value for the return body parameter |
Boolean |
getReturnHead()
|
Quorum |
getW()
The write quorum |
boolean |
hasDw()
Has the durable write quorum been set? |
boolean |
hasIfNoneMatch()
Has the ifNoneMatch parameter been set? |
boolean |
hasIfNotModified()
Has the ifNotModified parameter been set? |
boolean |
hasPw()
Has the pw parameter been set? |
boolean |
hasReturnBody()
Has the return body parameter been set? |
boolean |
hasReturnHead()
|
boolean |
hasW()
Is the write quorum set? |
static StoreMeta |
headOnly()
|
boolean |
isIfNoneMatch()
|
boolean |
isIfNotModified()
|
StoreMeta |
lastModified(Date lastModified)
Optional supporting parameter for ifNotModified for the HTTP API |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StoreMeta(Integer w, Integer dw, Integer pw, Boolean returnBody, Boolean ifNoneMatch, Boolean ifNotModified)
null
s for any parameter
w
- the write quorum for a store operationdw
- the durable write quorum for a store operationpw
- the primary write quorumreturnBody
- should the store operation return the new data item and its
meta dataifNoneMatch
- only store if bucket/key does not existifNotModified
- only store is the vclock supplied on store matches the vclock
in Riakpublic StoreMeta(Integer w, Integer dw, Integer pw, Boolean returnBody, Boolean returnHead, Boolean ifNoneMatch, Boolean ifNotModified)
null
s for any parameter
w
- the write quorum for a store operationdw
- the durable write quorum for a store operationpw
- the primary write quorumreturnBody
- should the store operation return the new data item and its
meta datareturnHead
- should the store operation return only the meta dataifNoneMatch
- only store if bucket/key does not existifNotModified
- only store is the vclock supplied on store matches the vclock
in Riakpublic StoreMeta(Quorum w, Quorum dw, Quorum pw, Boolean returnBody, Boolean returnHead, Boolean ifNoneMatch, Boolean ifNotModified)
null
s for any parameter
w
- the write quorum for a store operationdw
- the durable write quorum for a store operationpw
- the primary write quorumreturnBody
- should the store operation return the new data item and its
meta datareturnHead
- should the store operation return only the meta dataifNoneMatch
- only store if bucket/key does not existifNotModified
- only store is the vclock supplied on store matches the vclock
in RiakMethod Detail |
---|
public Quorum getW()
public boolean hasW()
true
if the write quorum is set, false
otherwisepublic Quorum getDw()
null
if the durable write quorum is not setpublic boolean hasDw()
true
if durable write quorum is set, false
otherwisepublic boolean hasReturnBody()
true
of return body parameter is set, false
otherwisepublic Boolean getReturnBody()
null
if it is not setpublic boolean hasPw()
true
if pw parameter is set, false
otherwisepublic Quorum getPw()
null
if it is not set.public boolean hasIfNoneMatch()
true
if ifNoneMatch parameter is set,
false
otherwisepublic Boolean getIfNoneMatch()
null
if not set.public boolean isIfNoneMatch()
public boolean hasIfNotModified()
true
if ifNotModified parameter is set,
false
otherwisepublic Boolean getIfNotModified()
null
if not set.public boolean isIfNotModified()
public static StoreMeta empty()
public boolean hasReturnHead()
public Boolean getReturnHead()
public StoreMeta etags(String[] etags)
etags
- the array of etags to provide for ifNoneMatch
public String[] getEtags()
public Date getLastModified()
public StoreMeta lastModified(Date lastModified)
lastModified
- a Date
public static StoreMeta headOnly()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |