|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.common.CompletionRequest
Constructor Summary | |
CompletionRequest()
|
Method Summary | |
void |
addFirstListener(CompletionListener listener)
Set up a listener that is invoked when a result becomes available. |
void |
addFirstListener(CompletionListener listener,
weblogic.work.WorkManager workManager)
Set up a listener that is invoked when a result becomes available. |
void |
addListener(CompletionListener listener)
Set up a listener that is invoked when a result becomes available. |
void |
addListener(CompletionListener listener,
weblogic.work.WorkManager workManager)
Set up a listener that is invoked when a result becomes available. |
Object |
getResult()
Return the result. |
boolean |
hasResult()
Return true if a result has been set |
boolean |
removeListener(CompletionListener listener)
Remove a listener from the request. |
void |
reset()
Reset the request for re-use. |
void |
run()
This is an implementation of ExecuteRequest. |
boolean |
runListenersInSetResult(boolean rlisr)
Call any completion listeners in the setResult's stack frame. |
void |
setResult(Object result)
Take the specified object and set it as the result for this request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CompletionRequest()
Method Detail |
public void addFirstListener(CompletionListener listener)
listener
- the listener to addpublic void addFirstListener(CompletionListener listener, weblogic.work.WorkManager workManager)
listener
- the listener to addworkManager
- the work manager to use when invoking the listenerpublic void addListener(CompletionListener listener)
listener
- the listener to addpublic void addListener(CompletionListener listener, weblogic.work.WorkManager workManager)
listener
- the listener to addworkManager
- the work manager where the listener's
methods will be run (unless "runListenersInSetResult was called)
This parameter must not be null. If multiple listeners specify
different work managers, then the last work manager wins and
all listeners use the same work manager.public Object getResult() throws Throwable
Throwable
- result if the result was a throwablepublic boolean hasResult()
public boolean removeListener(CompletionListener listener)
listener
- the listener to add
public void reset()
IllegalStateException
- if there is either a
thread or a listener waiting for a result.public void run()
run
in interface Runnable
public boolean runListenersInSetResult(boolean rlisr)
public void setResult(Object result)
result
- The object to set as the result
NullPointerException
- if object is null
IllegalStateException
- if result was already set
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs91 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |