public class StateLogConfig extends ResourceConfig<StateLogConfig>
config| Modifier | Constructor and Description |
|---|---|
|
StateLogConfig() |
|
StateLogConfig(Map<String,Object> config) |
protected |
StateLogConfig(Map<String,Object> config,
String... resources) |
protected |
StateLogConfig(StateLogConfig config) |
protected |
StateLogConfig(String... resources) |
|
StateLogConfig(String resource) |
| Modifier and Type | Method and Description |
|---|---|
StateLogConfig |
copy() |
Consistency |
getDefaultConsistency()
Returns the state log read consistency.
|
CoordinatedResourceConfig |
resolve(ClusterConfig cluster) |
void |
setDefaultConsistency(Consistency consistency)
Sets the state log read consistency.
|
void |
setDefaultConsistency(String consistency)
Sets the state log read consistency.
|
StateLogConfig |
withDefaultConsistency(Consistency consistency)
Sets the state log read consistency, returning the configuration for method chaining.
|
StateLogConfig |
withDefaultConsistency(String consistency)
Sets the state log read consistency, returning the configuration for method chaining.
|
addReplica, clearReplicas, getDefaultSerializer, getElectionTimeout, getExecutor, getHeartbeatInterval, getLog, getReplicas, getSerializer, removeReplica, 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, waitloadpublic StateLogConfig()
public StateLogConfig(String resource)
protected StateLogConfig(String... resources)
protected StateLogConfig(StateLogConfig config)
public StateLogConfig copy()
copy in interface Copyable<Configurable>copy in class ResourceConfig<StateLogConfig>public void setDefaultConsistency(String consistency)
consistency - The state log read consistency.NullPointerException - If the consistency is nullpublic void setDefaultConsistency(Consistency consistency)
consistency - The state log read consistency.NullPointerException - If the consistency is nullpublic Consistency getDefaultConsistency()
public StateLogConfig withDefaultConsistency(String consistency)
consistency - The state log read consistency.NullPointerException - If the consistency is nullpublic StateLogConfig withDefaultConsistency(Consistency consistency)
consistency - The state log read consistency.NullPointerException - If the consistency is nullpublic CoordinatedResourceConfig resolve(ClusterConfig cluster)
resolve in class ResourceConfig<StateLogConfig>Copyright © 2013-2015. All Rights Reserved.