Package org.eclipse.emf.cdo.spi.server
Klasse StoreAccessorPool
java.lang.Object
org.eclipse.emf.cdo.spi.server.StoreAccessorPool
If the meaning of this type isn't clear, there really should be more of a description here...
- Seit:
- 2.0
- Autor:
- Eike Stepper
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddStoreAccessor(StoreAccessorBase accessor) Passivates the givenstore accessorand adds it to this pool if the pool size is smaller than thecapacity, or disposes of the store accessor otherwise.voiddispose()Deactivates all containedstore accessorsand clears this pool.protected voiddisposeStoreAccessor(StoreAccessorBase accessor) intgetStore()removeStoreAccessor(Object context) Returns astore accessorfrom this pool if one is available, ornullotherwise.protected voidretainStoreAccessors(int targetSize) voidsetCapacity(int capacity)
-
Felddetails
-
DEFAULT_CAPACITY
public static final int DEFAULT_CAPACITY- Seit:
- 4.2
- Siehe auch:
-
-
Konstruktordetails
-
StoreAccessorPool
-
-
Methodendetails
-
getStore
-
getContext
-
getCapacity
public int getCapacity()- Seit:
- 4.2
-
setCapacity
public void setCapacity(int capacity) - Seit:
- 4.2
-
addStoreAccessor
Passivates the givenstore accessorand adds it to this pool if the pool size is smaller than thecapacity, or disposes of the store accessor otherwise.- Seit:
- 4.0
-
removeStoreAccessor
Returns astore accessorfrom this pool if one is available, ornullotherwise. If a store accessor is available it is removed from this pool and its unpassivate method is called.- Seit:
- 4.0
-
dispose
public void dispose()Deactivates all containedstore accessorsand clears this pool. -
retainStoreAccessors
protected void retainStoreAccessors(int targetSize) - Seit:
- 4.2
-
disposeStoreAccessor
- Seit:
- 4.2
-