|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServicePool<Key,Service>
A service pool is like a connection pool but can pool any kind of objects.
Services that is capable of being pooled should implement the marker interfaceServicePoolAware.
| Method Summary | |
|---|---|
Service |
acquire(Key key)
Tries to acquire the servie with the given key |
Service |
addAndAcquire(Key key,
Service service)
Adds the given service to the pool and acquires it. |
void |
release(Key key,
Service service)
Releases the service back to the pool |
| Methods inherited from interface org.apache.camel.Service |
|---|
start, stop |
| Method Detail |
|---|
Service addAndAcquire(Key key,
Service service)
key - the keyservice - the service
Service acquire(Key key)
key - the key
void release(Key key,
Service service)
key - the keyservice - the service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||