public class AutoReadWriteSplittingPlugin extends ReadWriteSplittingPlugin
autoReadWriteSplitting): routes queries based on
SQL analysis at statement-creation time (falling back to setReadOnly). Requires the
sqlParser plugin to be ordered before it.READER_HOST_SELECTOR_STRATEGY, VERIFY_INITIAL_CONNECTION_ROLEALLOW_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| Constructor and Description |
|---|
AutoReadWriteSplittingPlugin(PluginService pluginService,
java.util.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
protected static RwSplitHelpers |
auto(java.util.Properties props)
Builds the SQL-driven (prepare-time) routing assembly with a sticky reader.
|
readerHostSelectorStrategy, topologybindReader, 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 AutoReadWriteSplittingPlugin(PluginService pluginService, java.util.Properties properties)
protected static RwSplitHelpers auto(java.util.Properties props)