public class StoreMeta extends Object
RawClient.store(com.basho.riak.client.IRiakObject, StoreMeta)
Modifier and Type | Class and Description |
---|---|
static class |
StoreMeta.Builder |
Constructor and Description |
---|
StoreMeta(Integer w,
Integer dw,
Integer pw,
Boolean returnBody,
Boolean returnHead,
Boolean ifNoneMatch,
Boolean ifNotModified,
Boolean asis,
Integer timeout)
Create a StoreMeta, accepts
null s for any parameter |
StoreMeta(Integer w,
Integer dw,
Integer pw,
Boolean returnBody,
Boolean ifNoneMatch,
Boolean ifNotModified,
Boolean asis,
Integer timeout)
Create a StoreMeta, accepts
null s for any parameter |
StoreMeta(Quorum w,
Quorum dw,
Quorum pw,
Boolean returnBody,
Boolean returnHead,
Boolean ifNoneMatch,
Boolean ifNotModified,
Boolean asis,
Integer timeout)
Create a StoreMeta, accepts
null s for any parameter |
Modifier and Type | Method and Description |
---|---|
static StoreMeta |
empty() |
StoreMeta |
etags(String[] etags)
Optional supporting data for ifNoneMatch for the HTTP API
|
boolean |
getAsis() |
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() |
Integer |
getTimeout() |
Quorum |
getW()
The write quorum
|
boolean |
hasAsis() |
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 |
hasTimeout() |
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
|
public StoreMeta(Integer w, Integer dw, Integer pw, Boolean returnBody, Boolean ifNoneMatch, Boolean ifNotModified, Boolean asis, Integer timeout)
null
s for any parameterw
- 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, Boolean asis, Integer timeout)
null
s for any parameterw
- 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, Boolean asis, Integer timeout)
null
s for any parameterw
- 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 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 boolean hasAsis()
public boolean getAsis()
public boolean hasTimeout()
public Integer getTimeout()
public StoreMeta etags(String[] etags)
etags
- the array of etags to provide for ifNoneMatchpublic String[] getEtags()
public Date getLastModified()
public StoreMeta lastModified(Date lastModified)
lastModified
- a Datepublic static StoreMeta headOnly()
Copyright © 2013. All Rights Reserved.