com.ten60.netkernel.scheduler
Class PendingRequestMap
java.lang.Object
com.ten60.netkernel.scheduler.PendingRequestMap
- public final class PendingRequestMap
- extends Object
A Map of pending request states tied to child requests.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PendingRequestMap
public PendingRequestMap()
put
public void put(URRequest aRequest,
RequestState aState)
remove
public RequestState remove(URRequest aRequest)
get
public RequestState get(URRequest aRequest)
size
public int size()
hasEquivalentInProgress
public boolean hasEquivalentInProgress(RequestState aState)
notifyOfAvailableResult
public void notifyOfAvailableResult(RequestState aState,
RequestTable aTable)
getNewestStateForSession
public RequestState getNewestStateForSession(IRequestorSession aSession)
getRootRequestForSession
public URRequest getRootRequestForSession(IRequestorSession aSession)
kill
public boolean kill(IRequestorSession aSession,
Map aStateToThreadMap,
RequestTable aTable,
boolean aOrphan,
String aErrorId)
- Attempt to terminate execution of a session- this will
either attempt to kill thread running request or force an orphaned response
if asynch session has failed to return a response in error
- Parameters:
aSession
- the session to killaStateToThreadMap
- the map to lookup possible thread associated with requestaTable
- the table of pending requests for a sessionaOrphan
- if true a dummy response will be returned if no thread is found for request, otherwise
nothing will happenaErrorId
- the error id that failing request will throw
- Returns:
- true if the session was satisfactorily killed
Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.