| Modifier and Type | Field and Description |
|---|---|
| protected volatile int | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public List | getConnectionsForQuery(AbstractSession session, DatabaseQuery query, AbstractRecord arguments)
INTERNAL:
Get a connection from one of the pools in a round robin rotation fashion.
|
| public boolean | |
| public Accessor | nextAccessor(ServerSession session, DatabaseQuery query)
INTERNAL: Return the next connection accessor. |
| public int | |
| public void |
| currentIndex | back to summary |
|---|---|
| protected volatile int currentIndex | |
| replicateWrites | back to summary |
|---|---|
| protected boolean replicateWrites | |
| RoundRobinPartitioningPolicy | back to summary |
|---|---|
| public RoundRobinPartitioningPolicy() | |
| RoundRobinPartitioningPolicy | back to summary |
|---|---|
| public RoundRobinPartitioningPolicy(boolean replicateWrites) | |
| RoundRobinPartitioningPolicy | back to summary |
|---|---|
| public RoundRobinPartitioningPolicy(String... pools) | |
| RoundRobinPartitioningPolicy | back to summary |
|---|---|
| public RoundRobinPartitioningPolicy(List<String> pools) | |
| getConnectionsForQuery | back to summary |
|---|---|
| public List INTERNAL: Get a connection from one of the pools in a round robin rotation fashion.
| |
| getReplicateWrites | back to summary |
|---|---|
| public boolean getReplicateWrites() PUBLIC: Return if write queries should be replicated. This allows for a set of database to be written to and kept in synch, and have reads load-balanced across the databases. | |
| nextAccessor | back to summary |
|---|---|
| public Accessor nextAccessor(ServerSession session, DatabaseQuery query) INTERNAL: Return the next connection accessor. | |
| nextIndex | back to summary |
|---|---|
| public int nextIndex() INTERNAL: Return the next pool index to use. | |
| setReplicateWrites | back to summary |
|---|---|
| public void setReplicateWrites(boolean replicateWrites) PUBLIC: Set if write queries should be replicated. This allows for a set of database to be written to and kept in synch, and have reads load-balanced across the databases. | |