Package i5.las2peer.persistency.pastry
Class PastInsertContinuation
java.lang.Object
i5.las2peer.persistency.pastry.PastInsertContinuation
public class PastInsertContinuation
extends Object
implements rice.Continuation<Boolean[],Exception>
This class is required by Past for the insert 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
ConstructorDescriptionPastInsertContinuation
(ExecutorService dispatcher, StorageStoreResultHandler resultHandler, StorageExceptionHandler exceptionHandler, Serializable serializable) -
Method Summary
Modifier and TypeMethodDescriptionvoid
receiveException
(Exception exception) void
receiveResult
(Boolean[] result)
-
Constructor Details
-
PastInsertContinuation
public PastInsertContinuation(ExecutorService dispatcher, StorageStoreResultHandler resultHandler, StorageExceptionHandler exceptionHandler, Serializable serializable)
-
-
Method Details