Package i5.las2peer.persistency.pastry
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface rice.Continuation
rice.Continuation.ErrorContinuation<R extends Object,
E extends Exception>, rice.Continuation.ExternalContinuation<R extends Object, E extends Exception>, rice.Continuation.ExternalContinuationRunnable<R extends Object, E extends Exception>, rice.Continuation.ExternalRunnable, rice.Continuation.ListenerContinuation<R extends Object, E extends Exception>, rice.Continuation.MultiContinuation, rice.Continuation.NamedContinuation, rice.Continuation.SimpleContinuation, rice.Continuation.StandardContinuation<R extends Object, E extends Exception> -
Constructor Summary
ConstructorDescriptionPastLookupContinuation
(ExecutorService dispatcher, StorageLookupHandler lookupHandler, StorageExceptionHandler exceptionHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
receiveException
(Exception exception) void
receiveResult
(rice.p2p.past.PastContentHandle[] result)
-
Constructor Details
-
PastLookupContinuation
public PastLookupContinuation(ExecutorService dispatcher, StorageLookupHandler lookupHandler, StorageExceptionHandler exceptionHandler)
-
-
Method Details
-
receiveResult
public void receiveResult(rice.p2p.past.PastContentHandle[] result) - Specified by:
receiveResult
in interfacerice.Continuation<rice.p2p.past.PastContentHandle[],
Exception>
-
receiveException
- Specified by:
receiveException
in interfacerice.Continuation<rice.p2p.past.PastContentHandle[],
Exception>
-