public class ReadWriteSplittingPlugin extends UnifiedReadWriteSplittingPlugin
readWriteSplitting): routes on
setReadOnly, selects a reader from the cluster topology using the configured host
selector strategy, and caches a sticky reader. Composed from read/write splitting helpers on top
of UnifiedReadWriteSplittingPlugin.| Modifier and Type | Field and Description |
|---|---|
static AwsWrapperProperty |
READER_HOST_SELECTOR_STRATEGY |
static AwsWrapperProperty |
VERIFY_INITIAL_CONNECTION_ROLE |
ALLOW_STATEMENT_RECREATION_ON_CONNECTION_SWITCH, ASSUME_WRITE_TRANSACTION, CACHED_READER_KEEP_ALIVE_TIMEOUT, helpers, hostListProviderService, inReadWriteSplit, isReaderConnFromInternalPool, isWriterConnFromInternalPool, LOAD_BALANCING_INCLUDE_WRITER, pluginService, properties, QUERY_LEVEL_LOAD_BALANCING, readerCacheItem, readerHostSpec, writerConnection, writerHostSpec| Modifier | Constructor and Description |
|---|---|
|
ReadWriteSplittingPlugin(PluginService pluginService,
java.util.Properties properties) |
protected |
ReadWriteSplittingPlugin(PluginService pluginService,
java.util.Properties properties,
RwSplitHelpers helpers)
Constructor for subclasses that supply their own helper assembly.
|
| Modifier and Type | Method and Description |
|---|---|
protected static java.lang.String |
readerHostSelectorStrategy(java.util.Properties props) |
protected static RwSplitHelpers |
topology(java.util.Properties props)
Builds the topology-aware,
setReadOnly-driven, sticky-reader assembly. |
bindReader, bindWriter, closeReaderConnectionIfIdle, closeWriterConnectionIfIdle, connect, connect, currentConnection, currentHostSpec, enterReadWriteSplit, execute, getReaderConnection, getSnapshotState, getSubscribedMethods, getWriterConnection, hostListProviderService, initHostProvider, isConnectionUsable, isInReadWriteSplit, isReaderFromPool, isWriterFromPool, logAndThrow, logAndThrow, markReaderFromPool, markWriterFromPool, notifyConnectionChanged, pluginService, properties, readerConnection, readerHostSpec, readerLoadBalancer, releaseResources, setWriterHostSpec, switchCurrentConnectionTo, writerConnection, writerHostSpecacceptsStrategy, forceConnect, getHostSpecByStrategy, getHostSpecByStrategy, notifyNodeListChangedpublic static final AwsWrapperProperty READER_HOST_SELECTOR_STRATEGY
public static final AwsWrapperProperty VERIFY_INITIAL_CONNECTION_ROLE
public ReadWriteSplittingPlugin(PluginService pluginService, java.util.Properties properties)
protected ReadWriteSplittingPlugin(PluginService pluginService, java.util.Properties properties, RwSplitHelpers helpers)
protected static java.lang.String readerHostSelectorStrategy(java.util.Properties props)
protected static RwSplitHelpers topology(java.util.Properties props)
setReadOnly-driven, sticky-reader assembly.