org.eclipse.emf.cdo.spi.server
Class StoreAccessorPool

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

public class StoreAccessorPool
extends Object

Since:
2.0

Constructor Summary
StoreAccessorPool(IStore store, Object context)
           
 
Method Summary
 void addStoreAccessor(StoreAccessorBase storeAccessor)
          Passivates the given store accessor and adds it to this pool.
 void dispose()
          Deactivates all contained store accessors and clears this pool.
 Object getContext()
           
 IStore getStore()
           
 StoreAccessorBase removeStoreAccessor(Object context)
          Returns a store accessor from this pool if one is available, or null otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreAccessorPool

public StoreAccessorPool(IStore store,
                         Object context)
Method Detail

getStore

public IStore getStore()

getContext

public Object getContext()

addStoreAccessor

public void addStoreAccessor(StoreAccessorBase storeAccessor)
Passivates the given store accessor and adds it to this pool.

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.



Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.