public class Plan.SyncResultListener extends Object implements IResultListener, IExternalCondition
Constructor and Description |
---|
Plan.SyncResultListener() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a property change listener.
|
void |
exceptionOccurred(Exception exception)
Called when an exception occurred.
|
boolean |
isTrue()
Test if the condition holds.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a property change listener.
|
void |
resultAvailable(Object result)
Called when the result is available.
|
Object |
waitForResult()
Wait for the result.
|
Object |
waitForResult(long timeout)
Wait for the result.
|
public void resultAvailable(Object result)
resultAvailable
in interface IResultListener
result
- The result.public void exceptionOccurred(Exception exception)
exceptionOccurred
in interface IResultListener
exception
- The exception.public Object waitForResult()
public Object waitForResult(long timeout)
timeout
- The timeout.TimeoutException
- when result is not available in specified time frame.public boolean isTrue()
isTrue
in interface IExternalCondition
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in interface IExternalCondition
public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in interface IExternalCondition
Copyright © 2012. All Rights Reserved.