public class TerminableProviderAgent extends Object implements ITerminableService
| Constructor and Description |
|---|
TerminableProviderAgent() |
| Modifier and Type | Method and Description |
|---|---|
ITerminableFuture<String> |
getResult(long delay)
Get the result.
|
ITerminableIntermediateFuture<String> |
getResults(long delay,
int max)
Get the result.
|
IIntermediateFuture<Void> |
terminateCalled()
Be informed when one of the other methods futures is terminated.
|
public ITerminableFuture<String> getResult(long delay)
getResult in interface ITerminableServicedelay - The delay that is waited before the result is retured.public ITerminableIntermediateFuture<String> getResults(long delay, int max)
getResults in interface ITerminableServicedelay - The delay that is waited before the result is returned.max - The number of produced intermediate results.public IIntermediateFuture<Void> terminateCalled()
terminateCalled in interface ITerminableServiceCopyright © 2013. All Rights Reserved.