Package com.arangodb.model
Class DocumentReadOptions
- java.lang.Object
-
- com.arangodb.model.DocumentReadOptions
-
public final class DocumentReadOptions extends Object
- Author:
- Mark Vollmary, Michele Rastelli
-
-
Constructor Summary
Constructors Constructor Description DocumentReadOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentReadOptionsallowDirtyRead(Boolean allowDirtyRead)BooleangetAllowDirtyRead()StringgetIfMatch()StringgetIfNoneMatch()StringgetStreamTransactionId()DocumentReadOptionsifMatch(String ifMatch)DocumentReadOptionsifNoneMatch(String ifNoneMatch)DocumentReadOptionsstreamTransactionId(String streamTransactionId)
-
-
-
Method Detail
-
getIfNoneMatch
public String getIfNoneMatch()
-
ifNoneMatch
public DocumentReadOptions ifNoneMatch(String ifNoneMatch)
- Parameters:
ifNoneMatch- document revision must not contain If-None-Match- Returns:
- options
-
getIfMatch
public String getIfMatch()
-
ifMatch
public DocumentReadOptions ifMatch(String ifMatch)
- Parameters:
ifMatch- document revision must contain If-Match- Returns:
- options
-
allowDirtyRead
public DocumentReadOptions allowDirtyRead(Boolean allowDirtyRead)
- Parameters:
allowDirtyRead- Set totrueallows reading from followers in an active-failover setup.- Returns:
- options
- Since:
- ArangoDB 3.4.0
- See Also:
- API Documentation
-
getAllowDirtyRead
public Boolean getAllowDirtyRead()
-
getStreamTransactionId
public String getStreamTransactionId()
-
streamTransactionId
public DocumentReadOptions streamTransactionId(String streamTransactionId)
- Parameters:
streamTransactionId- If set, the operation will be executed within the transaction.- Returns:
- options
- Since:
- ArangoDB 3.5.0
-
-