net.tomp2p.futures
Class FutureSuccessEvaluatorCommunication
java.lang.Object
net.tomp2p.futures.FutureSuccessEvaluatorCommunication
- All Implemented Interfaces:
- FutureSuccessEvaluator
public class FutureSuccessEvaluatorCommunication
- extends Object
- implements FutureSuccessEvaluator
The communication future success evaluator returns OK if the communication was successful, otherwise it returns
FAILED. This evaluation does not care if e.g. an object was not found on an other peer. This is because the peer
successfully reported that the element is not present. If an other evaluation scheme is necessary, provide your own.
- Author:
- Thomas Bocek
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FutureSuccessEvaluatorCommunication
public FutureSuccessEvaluatorCommunication()
evaluate
public BaseFuture.FutureType evaluate(Message requestMessage,
Message responseMessage)
- Specified by:
evaluate
in interface FutureSuccessEvaluator
Copyright © 2013. All Rights Reserved.