|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.6) Part Number E13941-06 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object weblogic.common.CompletionRequest
public class 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 setResult(Object result)
result
- The object to set as the result
NullPointerException
- if object is null
IllegalStateException
- if result was already setpublic boolean runListenersInSetResult(boolean rlisr)
public Object getResult() throws Throwable
Throwable
- result if the result was a throwablepublic 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 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 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 hasResult()
|
Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.6) Part Number E13941-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |