|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ofbiz.service.GenericResultWaiter
public class GenericResultWaiter
Generic Result Waiter Class
| Field Summary | |
|---|---|
static java.lang.String |
module
|
static int |
SERVICE_FAILED
Status code for a failed service |
static int |
SERVICE_FINISHED
Status code for a successful service |
static int |
SERVICE_RUNNING
Status code for a running service |
| Constructor Summary | |
|---|---|
GenericResultWaiter()
|
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getResult()
Gets the results of the service or null if none |
java.lang.Throwable |
getThrowable()
Returns the exception which was thrown or null if none |
boolean |
isCompleted()
If the service has completed return true |
void |
receiveResult(java.util.Map<java.lang.String,java.lang.Object> result)
Receive the result of an asynchronous service call |
void |
receiveThrowable(java.lang.Throwable t)
Receive an exception (Throwable) from an asynchronous service cell |
int |
status()
Returns the status of the service. |
java.util.Map<java.lang.String,java.lang.Object> |
waitForResult()
Waits for the service to complete |
java.util.Map<java.lang.String,java.lang.Object> |
waitForResult(long milliseconds)
Waits for the service to complete, check the status ever n milliseconds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String module
public static final int SERVICE_RUNNING
public static final int SERVICE_FAILED
public static final int SERVICE_FINISHED
| Constructor Detail |
|---|
public GenericResultWaiter()
| Method Detail |
|---|
public void receiveResult(java.util.Map<java.lang.String,java.lang.Object> result)
GenericRequester
receiveResult in interface GenericRequesterresult - Map of name, value pairs composing the resultGenericRequester.receiveResult(java.util.Map)public void receiveThrowable(java.lang.Throwable t)
GenericRequester
receiveThrowable in interface GenericRequestert - The Throwable which was receivedGenericRequester.receiveThrowable(java.lang.Throwable)public int status()
public boolean isCompleted()
public java.lang.Throwable getThrowable()
public java.util.Map<java.lang.String,java.lang.Object> getResult()
public java.util.Map<java.lang.String,java.lang.Object> waitForResult()
public java.util.Map<java.lang.String,java.lang.Object> waitForResult(long milliseconds)
milliseconds -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||