| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addConnectionPool(String connectionPool)
PUBLIC: Add the connection pool name to the list of pools to rotate queries through. |
| private int | |
| public List | |
| public List | getConnectionsForQuery(AbstractSession session, DatabaseQuery query, AbstractRecord arguments)
Implements abstract org. |
| public void | initialize(AbstractSession session)
Overrides org. |
| public void | partitionPersist(AbstractSession session, Object object, ClassDescriptor descriptor)
Overrides org. |
| public void | setConnectionPools(List<String> connectionPools)
PUBLIC: Set the list of connection pool names to replicate queries to. |
| connectionPools | back to summary |
|---|---|
| protected List<String> connectionPools | |
| HashPartitioningPolicy | back to summary |
|---|---|
| public HashPartitioningPolicy() | |
| HashPartitioningPolicy | back to summary |
|---|---|
| public HashPartitioningPolicy(String partitionField) | |
| HashPartitioningPolicy | back to summary |
|---|---|
| public HashPartitioningPolicy(String partitionField, boolean unionUnpartitionableQueries) | |
| addConnectionPool | back to summary |
|---|---|
| public void addConnectionPool(String connectionPool) PUBLIC: Add the connection pool name to the list of pools to rotate queries through. | |
| computePartitionId | back to summary |
|---|---|
| private int computePartitionId(Object o) | |
| getConnectionPools | back to summary |
|---|---|
| public List PUBLIC: Return the list of connection pool names to replicate queries to. | |
| getConnectionsForQuery | back to summary |
|---|---|
| public List Implements abstract org. INTERNAL: Get a connection from one of the pools in a round robin rotation fashion.
| |
| initialize | back to summary |
|---|---|
| public void initialize(AbstractSession session) Overrides org. INTERNAL: Default the connection pools to all pools if unset.
| |
| partitionPersist | back to summary |
|---|---|
| public void partitionPersist(AbstractSession session, Object object, ClassDescriptor descriptor) Overrides org. INTERNAL: Allow for the persist call to assign the partition.
| |
| setConnectionPools | back to summary |
|---|---|
| public void setConnectionPools(List<String> connectionPools) PUBLIC: Set the list of connection pool names to replicate queries to. A connection pool with the same name must be defined on the ServerSession. | |