Package i5.las2peer.persistency.pastry
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.
-
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
ConstructorDescriptionPastFetchContinuation
(ExecutorService dispatcher, StorageArtifactHandler resultHandler, StorageExceptionHandler exceptionHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
receiveException
(Exception exception) void
receiveResult
(rice.p2p.past.PastContent result)
-
Constructor Details
-
PastFetchContinuation
public PastFetchContinuation(ExecutorService dispatcher, StorageArtifactHandler resultHandler, StorageExceptionHandler exceptionHandler)
-
-
Method Details