PooledOptimizer which interprets the incoming database value as the lo value, rather than
the hi value, as well as using thread local to cache the generation state.
PooledOptimizer
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final CoreMessageLogger | |
| private final ThreadLocal | |
| private final ThreadLocal |
| Access | Constructor and Description |
|---|---|
| public | PooledLoThreadLocalOptimizer(Class<T>
The Java type of the values to be generated returnClass, int The increment size. incrementSize)Constructs a PooledLoThreadLocalOptimizer. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | applyIncrementSizeToSourceValues()
Implements org. |
| public Serializable | generate(AccessCallback
Callback to access the underlying value source. callback)Implements org. |
| public IntegralDataTypeHolder | getLastSourceValue()
Implements org. |
| private PooledLoThreadLocalOptimizer. | |
| private PooledLoThreadLocalOptimizer. |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG | |
| multiTenantStates | back to summary |
|---|---|
| private final ThreadLocal<Map<String, PooledLoThreadLocalOptimizer. | |
| singleTenantState | back to summary |
|---|---|
| private final ThreadLocal<PooledLoThreadLocalOptimizer. | |
| PooledLoThreadLocalOptimizer | back to summary |
|---|---|
| public PooledLoThreadLocalOptimizer(Class<T> returnClass, int incrementSize) Constructs a PooledLoThreadLocalOptimizer.
| |
| applyIncrementSizeToSourceValues | back to summary |
|---|---|
| public boolean applyIncrementSizeToSourceValues() Implements org. Doc from org. Are increments to be applied to the values stored in the underlying value source?
| |
| generate | back to summary |
|---|---|
| public Serializable generate(AccessCallback callback) Implements org. Doc from org. Generate an identifier value accounting for this specific optimization. All known implementors are synchronized. Consider carefully if a new implementation could drop this requirement.
| |
| getLastSourceValue | back to summary |
|---|---|
| public IntegralDataTypeHolder getLastSourceValue() Implements org. Doc from org. A common means to access the last value obtained from the underlying source. This is intended for testing purposes, since accessing the underlying database source directly is much more difficult.
| |
| locateGenerationState | back to summary |
|---|---|
| private PooledLoThreadLocalOptimizer. | |
| noTenantGenerationState | back to summary |
|---|---|
| private PooledLoThreadLocalOptimizer. | |
| Modifier and Type | Field and Description |
|---|---|
| private IntegralDataTypeHolder | |
| private IntegralDataTypeHolder | |
| private IntegralDataTypeHolder |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private Serializable |
| lastSourceValue | back to summary |
|---|---|
| private IntegralDataTypeHolder lastSourceValue | |
| upperLimitValue | back to summary |
|---|---|
| private IntegralDataTypeHolder upperLimitValue | |
| value | back to summary |
|---|---|
| private IntegralDataTypeHolder value | |
| GenerationState | back to summary |
|---|---|
| private GenerationState() | |
| generate | back to summary |
|---|---|
| private Serializable generate(AccessCallback callback, int incrementSize) | |