|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Dictionary | +--java.util.Hashtable | +--com.ibm.retail.AEF.factory.AEFSessionPool
A AEFSessionPool serves as a resource pool for AEFSession objects.
Field Summary | |
---|---|
protected java.util.Hashtable |
pool
|
Constructor Summary | |
---|---|
AEFSessionPool()
Construct AEFSessionPool |
Method Summary | |
---|---|
void |
addSession(com.ibm.retail.AEF.session.AEFSession session)
Add a session to the pool |
boolean |
containsSession(java.lang.String terminalNumber)
Does this pool contain a session. |
(package private) static java.lang.String |
copyright()
|
void |
destroySession(java.lang.String terminalNumber)
Destroy an AEFSession and remove from the session pool. |
java.util.Collection |
getActiveTerminalNumbers()
Get an enumeration of terminal numbers of active AEFSessions in this factory. |
com.ibm.retail.AEF.session.AEFSession |
getAvailableSession()
Get any available session from the pool |
int |
getCurrentPoolSize()
Get the total number of sessions that are pooled. |
com.ibm.retail.AEF.session.AEFSession |
getSession(java.lang.String terminalNumber)
Get a session from the pool |
int |
getTotalAvailableSessions()
Get the total number of sessions that are available |
void |
releaseSession(com.ibm.retail.AEF.session.AEFSession session)
Release a session. |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.util.Hashtable pool
Constructor Detail |
public AEFSessionPool()
Method Detail |
static java.lang.String copyright()
public void addSession(com.ibm.retail.AEF.session.AEFSession session)
session
- AEFSession to be addedpublic com.ibm.retail.AEF.session.AEFSession getSession(java.lang.String terminalNumber)
terminalNumber
- terminal number of session
public com.ibm.retail.AEF.session.AEFSession getAvailableSession()
public void releaseSession(com.ibm.retail.AEF.session.AEFSession session)
session
- the session to be releasedpublic void destroySession(java.lang.String terminalNumber) throws java.rmi.RemoteException, AEFException
terminalNumber
- terminal number to destroy
java.rmi.RemoteException
AEFException
- Among the possible AEFException error codes are:
public int getTotalAvailableSessions()
public int getCurrentPoolSize()
public java.util.Collection getActiveTerminalNumbers() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an instance of an object cannot be createdpublic boolean containsSession(java.lang.String terminalNumber)
terminalNumber
- identifies the session
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |