Class PastFetchContinuation

java.lang.Object
i5.las2peer.persistency.pastry.PastFetchContinuation
All Implemented Interfaces:
rice.Continuation<rice.p2p.past.PastContent,Exception>

public class PastFetchContinuation extends Object implements rice.Continuation<rice.p2p.past.PastContent,Exception>
This class is required by Past for the fetch process. It provides the interface to receive results and exceptions occurring in the process. If such an event occurs and the respective handler is set it calls the handler in a new thread. This provides some network response time safety as the handler may perform time consuming tasks, but the actual method call is done directly from network stack.
  • Constructor Details

  • Method Details

    • receiveResult

      public void receiveResult(rice.p2p.past.PastContent result)
      Specified by:
      receiveResult in interface rice.Continuation<rice.p2p.past.PastContent,Exception>
    • receiveException

      public void receiveException(Exception exception)
      Specified by:
      receiveException in interface rice.Continuation<rice.p2p.past.PastContent,Exception>