java.lang.Object
stormpot.internal.AllocationProcess
The allocation process represent the means of building pool-specific
AllocationController instances.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate an allocation process with the given operating mode. -
Method Summary
Modifier and TypeMethodDescriptionstatic AllocationProcessdirect()Create an allocation process where all the pooled objects are given up-front.getMode()Get the operating mode of this allocation process.static AllocationProcessinline()Create an allocation process where all allocation and deallocation is performed in-line with the claim calls.static AllocationProcessthreaded()Create an allocation process that create pool controllers that use dedicated background threads.
-
Constructor Details
-
AllocationProcess
Create an allocation process with the given operating mode.- Parameters:
mode- The operating mode of this allocation process.
-
-
Method Details
-
threaded
Create an allocation process that create pool controllers that use dedicated background threads.- Returns:
- The new allocation process.
-
inline
Create an allocation process where all allocation and deallocation is performed in-line with the claim calls.- Returns:
- The new allocation process.
-
direct
Create an allocation process where all the pooled objects are given up-front.- Returns:
- The new allocation process.
-
getMode
Get the operating mode of this allocation process.- Returns:
- The operating mode.
-