public interface WriterResolver
| Modifier and Type | Method and Description |
|---|---|
WriterResolution |
resolveWriter(RwSplitContext ctx)
Resolves the writer target.
|
WriterResolution resolveWriter(RwSplitContext ctx) throws java.sql.SQLException
WriterResolution is either
WriterResolution.Kind.CONNECTED (a writer connection was established) or
WriterResolution.Kind.STAY (remain on the current reader connection, e.g. Global Write
Forwarding).ctx - the read/write splitting contextjava.sql.SQLException