Class PastLookupContinuation

java.lang.Object
i5.las2peer.persistency.pastry.PastLookupContinuation
All Implemented Interfaces:
rice.Continuation<rice.p2p.past.PastContentHandle[],Exception>

public class PastLookupContinuation extends Object implements rice.Continuation<rice.p2p.past.PastContentHandle[],Exception>
This class is required by Past for the lookup 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.PastContentHandle[] result)
      Specified by:
      receiveResult in interface rice.Continuation<rice.p2p.past.PastContentHandle[],Exception>
    • receiveException

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