Package org.eclipse.emf.cdo.spi.server

# Klasse 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...

Seit:
  2.0
Autor:
  Eike Stepper

## Feldübersicht

Felder
Modifizierer und Typ
Feld
Beschreibung
`static final int`
`DEFAULT_CAPACITY`

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`StoreAccessorPool(IStore store, Object context)`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`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.
`void`
`dispose()`
Deactivates all contained `store accessors` and clears this pool.
`protected void`
`disposeStoreAccessor(StoreAccessorBase accessor)`
`int`
`getCapacity()`
`Object`
`getContext()`
`IStore`
`getStore()`
`StoreAccessorBase`
`removeStoreAccessor(Object context)`
Returns a `store accessor` from this pool if one is available, or `null` otherwise.
`protected void`
`retainStoreAccessors(int targetSize)`
`void`
`setCapacity(int capacity)`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Felddetails

### DEFAULT_CAPACITY

public static final int DEFAULT_CAPACITY

Seit:
  4.2
Siehe auch:
  - Konstantenfeldwerte

## Konstruktordetails

### StoreAccessorPool

public StoreAccessorPool(IStore store, Object context)

## Methodendetails

### getStore

public IStore getStore()

### getContext

public Object getContext()

### getCapacity

public int getCapacity()

Seit:
  4.2

### setCapacity

public void setCapacity(int capacity)

Seit:
  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.

Seit:
  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.

Seit:
  4.0

### dispose

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

### retainStoreAccessors

protected void retainStoreAccessors(int targetSize)

Seit:
  4.2

### disposeStoreAccessor

protected void disposeStoreAccessor(StoreAccessorBase accessor)

Seit:
  4.2