public static final class CassandraExecutor.StatementSettings extends Object
Constructor and Description |
---|
StatementSettings()
Instantiates a new statement settings.
|
StatementSettings(com.datastax.driver.core.ConsistencyLevel consistency,
com.datastax.driver.core.ConsistencyLevel serialConsistency,
boolean traceQuery,
com.datastax.driver.core.policies.RetryPolicy retryPolicy,
int fetchSize)
Instantiates a new statement settings.
|
Modifier and Type | Method and Description |
---|---|
CassandraExecutor.StatementSettings |
copy() |
static CassandraExecutor.StatementSettings |
create() |
boolean |
equals(Object obj) |
com.datastax.driver.core.ConsistencyLevel |
getConsistency()
Gets the consistency.
|
int |
getFetchSize()
Gets the fetch size.
|
com.datastax.driver.core.policies.RetryPolicy |
getRetryPolicy()
Gets the retry policy.
|
com.datastax.driver.core.ConsistencyLevel |
getSerialConsistency()
Gets the serial consistency.
|
int |
hashCode() |
boolean |
isTraceQuery()
Checks if is trace query.
|
CassandraExecutor.StatementSettings |
setConsistency(com.datastax.driver.core.ConsistencyLevel consistency)
Sets the consistency.
|
CassandraExecutor.StatementSettings |
setFetchSize(int fetchSize)
Sets the fetch size.
|
CassandraExecutor.StatementSettings |
setRetryPolicy(com.datastax.driver.core.policies.RetryPolicy retryPolicy)
Sets the retry policy.
|
CassandraExecutor.StatementSettings |
setSerialConsistency(com.datastax.driver.core.ConsistencyLevel serialConsistency)
Sets the serial consistency.
|
CassandraExecutor.StatementSettings |
setTraceQuery(boolean traceQuery)
Sets the trace query.
|
String |
toString() |
public StatementSettings()
public StatementSettings(com.datastax.driver.core.ConsistencyLevel consistency, com.datastax.driver.core.ConsistencyLevel serialConsistency, boolean traceQuery, com.datastax.driver.core.policies.RetryPolicy retryPolicy, int fetchSize)
consistency
- serialConsistency
- traceQuery
- retryPolicy
- fetchSize
- public static CassandraExecutor.StatementSettings create()
public com.datastax.driver.core.ConsistencyLevel getConsistency()
public CassandraExecutor.StatementSettings setConsistency(com.datastax.driver.core.ConsistencyLevel consistency)
consistency
- public com.datastax.driver.core.ConsistencyLevel getSerialConsistency()
public CassandraExecutor.StatementSettings setSerialConsistency(com.datastax.driver.core.ConsistencyLevel serialConsistency)
serialConsistency
- public boolean isTraceQuery()
public CassandraExecutor.StatementSettings setTraceQuery(boolean traceQuery)
traceQuery
- public com.datastax.driver.core.policies.RetryPolicy getRetryPolicy()
public CassandraExecutor.StatementSettings setRetryPolicy(com.datastax.driver.core.policies.RetryPolicy retryPolicy)
retryPolicy
- public int getFetchSize()
public CassandraExecutor.StatementSettings setFetchSize(int fetchSize)
fetchSize
- public CassandraExecutor.StatementSettings copy()
public boolean equals(Object obj)
Copyright © 2021. All rights reserved.