net.tomp2p.futures
Class FutureSuccessEvaluatorCommunication

java.lang.Object
  extended by 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

Constructor Summary
FutureSuccessEvaluatorCommunication()
           
 
Method Summary
 BaseFuture.FutureType evaluate(Message requestMessage, Message responseMessage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FutureSuccessEvaluatorCommunication

public FutureSuccessEvaluatorCommunication()
Method Detail

evaluate

public BaseFuture.FutureType evaluate(Message requestMessage,
                                      Message responseMessage)
Specified by:
evaluate in interface FutureSuccessEvaluator


Copyright © 2013. All Rights Reserved.