Class StoreAccessorPool

java.lang.Object
org.eclipse.emf.cdo.spi.server.StoreAccessorPool

public class StoreAccessorPool extends Object
If the meaning of this type isn't clear, there really should be more of a description here...
Since:
2.0
Author:
Eike Stepper
  • Field Details

  • Constructor Details

    • StoreAccessorPool

      public StoreAccessorPool(IStore store, Object context)
  • Method Details

    • getStore

      public IStore getStore()
    • getContext

      public Object getContext()
    • getCapacity

      public int getCapacity()
      Since:
      4.2
    • setCapacity

      public void setCapacity(int capacity)
      Since:
      4.2
    • addStoreAccessor

      public void addStoreAccessor(StoreAccessorBase accessor)
      Passivates the given store accessor and adds it to this pool if the pool size is smaller than the capacity, or disposes of the store accessor otherwise.
      Since:
      4.0
    • removeStoreAccessor

      public StoreAccessorBase removeStoreAccessor(Object context)
      Returns a store accessor from this pool if one is available, or null otherwise. If a store accessor is available it is removed from this pool and its unpassivate method is called.
      Since:
      4.0
    • dispose

      public void dispose()
      Deactivates all contained store accessors and clears this pool.
    • retainStoreAccessors

      protected void retainStoreAccessors(int targetSize)
      Since:
      4.2
    • disposeStoreAccessor

      protected void disposeStoreAccessor(StoreAccessorBase accessor)
      Since:
      4.2