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()
Copy.
|
static CassandraExecutor.StatementSettings |
create()
Creates the.
|
boolean |
equals(Object obj)
Equals.
|
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()
Hash code.
|
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()
To string.
|
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
- the consistencyserialConsistency
- the serial consistencytraceQuery
- the trace queryretryPolicy
- the retry policyfetchSize
- the fetch sizepublic static CassandraExecutor.StatementSettings create()
public com.datastax.driver.core.ConsistencyLevel getConsistency()
public CassandraExecutor.StatementSettings setConsistency(com.datastax.driver.core.ConsistencyLevel consistency)
consistency
- the consistencypublic com.datastax.driver.core.ConsistencyLevel getSerialConsistency()
public CassandraExecutor.StatementSettings setSerialConsistency(com.datastax.driver.core.ConsistencyLevel serialConsistency)
serialConsistency
- the serial consistencypublic boolean isTraceQuery()
public CassandraExecutor.StatementSettings setTraceQuery(boolean traceQuery)
traceQuery
- the trace querypublic com.datastax.driver.core.policies.RetryPolicy getRetryPolicy()
public CassandraExecutor.StatementSettings setRetryPolicy(com.datastax.driver.core.policies.RetryPolicy retryPolicy)
retryPolicy
- the retry policypublic int getFetchSize()
public CassandraExecutor.StatementSettings setFetchSize(int fetchSize)
fetchSize
- the fetch sizepublic CassandraExecutor.StatementSettings copy()
public boolean equals(Object obj)
Copyright © 2019. All rights reserved.