public class SimpleReadWriteSplittingPlugin extends UnifiedReadWriteSplittingPlugin
srw): routes on setReadOnly
between a configured write endpoint and read endpoint, without relying on cluster topology, with
optional connection-role verification.| Modifier and Type | Field and Description |
|---|---|
static AwsWrapperProperty |
SRW_CONNECT_RETRY_INTERVAL_MS |
static AwsWrapperProperty |
SRW_CONNECT_RETRY_TIMEOUT_MS |
static AwsWrapperProperty |
SRW_READ_ENDPOINT |
static AwsWrapperProperty |
SRW_WRITE_ENDPOINT |
static AwsWrapperProperty |
VERIFY_INITIAL_CONNECTION_TYPE |
static AwsWrapperProperty |
VERIFY_NEW_SRW_CONNECTIONS |
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 |
|---|---|
|
SimpleReadWriteSplittingPlugin(PluginService pluginService,
java.util.Properties properties) |
protected |
SimpleReadWriteSplittingPlugin(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 RwSplitHelpers |
endpointHelpers(java.util.Properties props,
RoutingSignal routingSignal,
SwitchGate switchGate,
NoOpTopologyRefresher topologyRefresher)
Shared endpoint assembly builder, parameterized by routing signal and switch gate so the
SQL-routed variant can reuse it.
|
protected static RwSplitHelpers |
simple(java.util.Properties props)
Builds the endpoint-based assembly with
setReadOnly routing. |
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 SRW_READ_ENDPOINT
public static final AwsWrapperProperty SRW_WRITE_ENDPOINT
public static final AwsWrapperProperty VERIFY_NEW_SRW_CONNECTIONS
public static final AwsWrapperProperty SRW_CONNECT_RETRY_TIMEOUT_MS
public static final AwsWrapperProperty SRW_CONNECT_RETRY_INTERVAL_MS
public static final AwsWrapperProperty VERIFY_INITIAL_CONNECTION_TYPE
public SimpleReadWriteSplittingPlugin(PluginService pluginService, java.util.Properties properties)
protected SimpleReadWriteSplittingPlugin(PluginService pluginService, java.util.Properties properties, RwSplitHelpers helpers)
protected static RwSplitHelpers simple(java.util.Properties props)
setReadOnly routing.protected static RwSplitHelpers endpointHelpers(java.util.Properties props, RoutingSignal routingSignal, SwitchGate switchGate, NoOpTopologyRefresher topologyRefresher)