public class ServiceProxyPool
extends java.lang.Object
Constructor and Description |
---|
ServiceProxyPool() |
Modifier and Type | Method and Description |
---|---|
void |
addCasProcessor(CasProcessor aCasProcessor) |
void |
checkIn(CasProcessor aResource)
Checks in a Resource to the pool.
|
CasProcessor |
checkOut()
Checks out a Resource from the pool.
|
CasProcessor |
checkOut(long aTimeout)
Checks out a Resource from the pool.
|
void |
destroy()
Destroys all Resources in this pool.
|
int |
getAllInstanceCount() |
int |
getSize()
Gets the available size of this pool (the number of free, available instances at this moment).
|
public CasProcessor checkOut()
null
if none are available (in
which case the client may wait on this object in order to be notified when an instance
becomes available).public void checkIn(CasProcessor aResource)
aResource
- -
instance of the CasProcessor to check inpublic CasProcessor checkOut(long aTimeout)
aTimeout
- the time to wait in milliseconds. A value of <=0 will wait forever.null
if none are available (in
which case the client may wait on this object in order to be notified when an instance
becomes available).public void destroy()
public int getSize()
public void addCasProcessor(CasProcessor aCasProcessor)
public int getAllInstanceCount()
Copyright © 2013. All Rights Reserved.