Module stormpot

Class AllocationProcess

java.lang.Object
stormpot.internal.AllocationProcess

public abstract class AllocationProcess extends Object
The allocation process represent the means of building pool-specific AllocationController instances.
  • Constructor Details

    • AllocationProcess

      protected AllocationProcess(AllocationProcessMode mode)
      Create an allocation process with the given operating mode.
      Parameters:
      mode - The operating mode of this allocation process.
  • Method Details

    • threaded

      public static AllocationProcess threaded()
      Create an allocation process that create pool controllers that use dedicated background threads.
      Returns:
      The new allocation process.
    • inline

      public static AllocationProcess inline()
      Create an allocation process where all allocation and deallocation is performed in-line with the claim calls.
      Returns:
      The new allocation process.
    • direct

      public static AllocationProcess direct()
      Create an allocation process where all the pooled objects are given up-front.
      Returns:
      The new allocation process.
    • getMode

      public AllocationProcessMode getMode()
      Get the operating mode of this allocation process.
      Returns:
      The operating mode.