public class WriteOptions extends QueryOptions
QueryOptions
for write operations. WriteOptions
allow
tuning of various query options on a per-request level. Only options that are set are applied to queries.QueryOptions
Modifier and Type | Class and Description |
---|---|
static class |
WriteOptions.WriteOptionsBuilder
Builder for
QueryOptions . |
QueryOptions.QueryOptionsBuilder
Constructor and Description |
---|
WriteOptions()
Creates new
WriteOptions . |
WriteOptions(ConsistencyLevel consistencyLevel,
RetryPolicy retryPolicy)
|
WriteOptions(ConsistencyLevel consistencyLevel,
RetryPolicy retryPolicy,
Integer ttl)
|
Modifier and Type | Method and Description |
---|---|
static WriteOptions.WriteOptionsBuilder |
builder()
Creates a new
WriteOptions.WriteOptionsBuilder . |
Integer |
getTtl() |
void |
setTtl(Integer ttl)
Sets the time to live for write operations.
|
getConsistencyLevel, getDriverConsistencyLevel, getDriverRetryPolicy, getFetchSize, getReadTimeout, getRetryPolicy, getTracing, setConsistencyLevel, setConsistencyLevel, setFetchSize, setReadTimeout, setRetryPolicy, setRetryPolicy, setTracing
public WriteOptions()
WriteOptions
.public WriteOptions(ConsistencyLevel consistencyLevel, RetryPolicy retryPolicy)
consistencyLevel
- the consistency level, may be null.retryPolicy
- the retry policy, may be null.public WriteOptions(ConsistencyLevel consistencyLevel, RetryPolicy retryPolicy, Integer ttl)
consistencyLevel
- the consistency level, may be null.retryPolicy
- the retry policy, may be null.ttl
- the ttl, may be null.public static WriteOptions.WriteOptionsBuilder builder()
WriteOptions.WriteOptionsBuilder
.WriteOptions.WriteOptionsBuilder
.public Integer getTtl()
public void setTtl(Integer ttl)
ttl
- the ttl to set.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.