public abstract class AsyncCollectionConfig<T extends AsyncCollectionConfig<T>> extends ResourceConfig<T>
config| Modifier | Constructor and Description |
|---|---|
protected |
AsyncCollectionConfig(Map<String,Object> config,
String... resources) |
protected |
AsyncCollectionConfig(String... resources) |
protected |
AsyncCollectionConfig(T config) |
| Modifier and Type | Method and Description |
|---|---|
Consistency |
getConsistency()
Returns the collection read consistency.
|
void |
setConsistency(Consistency consistency)
Sets the collection read consistency.
|
void |
setConsistency(String consistency)
Sets the collection read consistency.
|
T |
withConsistency(Consistency consistency)
Sets the collection read consistency, returning the configuration for method chaining.
|
T |
withConsistency(String consistency)
Sets the collection read consistency, returning the configuration for method chaining.
|
addReplica, clearReplicas, copy, getDefaultSerializer, getElectionTimeout, getExecutor, getHeartbeatInterval, getLog, getReplicas, getSerializer, removeReplica, resolve, setDefaultSerializer, setElectionTimeout, setElectionTimeout, setExecutor, setHeartbeatInterval, setHeartbeatInterval, setLog, setReplicas, setReplicas, setSerializer, setSerializer, setSerializer, withDefaultSerializer, withElectionTimeout, withElectionTimeout, withExecutor, withHeartbeatInterval, withHeartbeatInterval, withLog, withReplicas, withReplicas, withSerializer, withSerializer, withSerializeraddResources, configure, equals, hashCode, toMap, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitloadprotected AsyncCollectionConfig(Map<String,Object> config, String... resources)
protected AsyncCollectionConfig(String... resources)
protected AsyncCollectionConfig(T config)
public void setConsistency(String consistency)
consistency - The collection read consistency.NullPointerException - If the consistency is nullpublic void setConsistency(Consistency consistency)
consistency - The collection read consistency.NullPointerException - If the consistency is nullpublic Consistency getConsistency()
public T withConsistency(String consistency)
consistency - The collection read consistency.NullPointerException - If the consistency is nullpublic T withConsistency(Consistency consistency)
consistency - The collection read consistency.NullPointerException - If the consistency is nullCopyright © 2013-2015. All Rights Reserved.