public class ServiceRankingDelegationResultListener<S> extends TerminableIntermediateDelegationResultListener<S>
Constructor and Description |
---|
ServiceRankingDelegationResultListener(TerminableIntermediateDelegationFuture<S> future,
ITerminableIntermediateFuture<S> src,
IServiceRanker<S> ranker,
IRankingSearchTerminationDecider<S> decider)
Create a new ranker.
|
Modifier and Type | Method and Description |
---|---|
void |
customIntermediateResultAvailable(S result)
Process intermediate results for ranking.
|
void |
customResultAvailable(Collection<S> result)
Called when result is available.
|
void |
exceptionOccurred(Exception exception)
Called when exception occurs.
|
void |
finished()
Declare that the future is finished.
|
boolean |
isFinished()
Get the finished.
|
boolean |
isFinishing()
Get the finished.
|
commandAvailable, exceptionOccurredIfUndone, finishedIfUndone, intermediateResultAvailable, intermediateResultAvailableIfUndone, resultAvailable, resultAvailableIfUndone
public ServiceRankingDelegationResultListener(TerminableIntermediateDelegationFuture<S> future, ITerminableIntermediateFuture<S> src, IServiceRanker<S> ranker, IRankingSearchTerminationDecider<S> decider)
public void customIntermediateResultAvailable(S result)
customIntermediateResultAvailable
in class IntermediateDelegationResultListener<S>
result
- The result.public void customResultAvailable(Collection<S> result)
customResultAvailable
in class IntermediateDelegationResultListener<S>
result
- The result.public void exceptionOccurred(Exception exception)
exceptionOccurred
in interface IResultListener<Collection<S>>
exceptionOccurred
in class IntermediateDelegationResultListener<S>
exception
- The exception.public void finished()
IntermediateDelegationResultListener
finished
in interface IIntermediateResultListener<S>
finished
in class IntermediateDelegationResultListener<S>
public boolean isFinished()
public boolean isFinishing()
Copyright © 2013. All Rights Reserved.