public abstract class AsyncCollectionConfig<T extends AsyncCollectionConfig<T>>
extends net.kuujo.copycat.resource.ResourceConfig<T>
| 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 |
|---|---|
net.kuujo.copycat.protocol.Consistency |
getConsistency()
Returns the collection read consistency.
|
void |
setConsistency(net.kuujo.copycat.protocol.Consistency consistency)
Sets the collection read consistency.
|
void |
setConsistency(String consistency)
Sets the collection read consistency.
|
T |
withConsistency(net.kuujo.copycat.protocol.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, toStringprotected 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(net.kuujo.copycat.protocol.Consistency consistency)
consistency - The collection read consistency.NullPointerException - If the consistency is nullpublic net.kuujo.copycat.protocol.Consistency getConsistency()
public T withConsistency(String consistency)
consistency - The collection read consistency.NullPointerException - If the consistency is nullpublic T withConsistency(net.kuujo.copycat.protocol.Consistency consistency)
consistency - The collection read consistency.NullPointerException - If the consistency is nullCopyright © 2013-2015. All Rights Reserved.