Package com.tangosol.persistence
Interface SafePersistenceWrappers.FailureContinuationFactory<R,T extends Throwable>
-
- Type Parameters:
R
- the type of a raw, environment specific object representationT
- the type of a Throwable failure to protect
- Enclosing class:
- SafePersistenceWrappers
public static interface SafePersistenceWrappers.FailureContinuationFactory<R,T extends Throwable>
FailureContinuationFactory encapsulates failure continuations to handle unexpected exceptions thrown by implementations of the various persistence layers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Continuation<? super T>
getEnvironmentContinuation(com.oracle.coherence.persistence.PersistenceEnvironment<R> env)
Return a failure continuation to handle unexpected exceptions thrown by operations against the specified PersistenceEnvironment.Continuation<? super T>
getManagerContinuation(com.oracle.coherence.persistence.PersistenceManager<R> mgr)
Return a failure continuation to handle unexpected exceptions thrown by operations against the specified PersistenceManager.Continuation<? super T>
getStoreContinuation(com.oracle.coherence.persistence.PersistentStore<R> store)
Return a failure continuation to handle unexpected exceptions thrown by operations against the specified PersistentStore.
-
-
-
Method Detail
-
getEnvironmentContinuation
Continuation<? super T> getEnvironmentContinuation(com.oracle.coherence.persistence.PersistenceEnvironment<R> env)
Return a failure continuation to handle unexpected exceptions thrown by operations against the specified PersistenceEnvironment.- Parameters:
env
- the PersistenceEnvironment- Returns:
- a failure continuation
-
getManagerContinuation
Continuation<? super T> getManagerContinuation(com.oracle.coherence.persistence.PersistenceManager<R> mgr)
Return a failure continuation to handle unexpected exceptions thrown by operations against the specified PersistenceManager.- Parameters:
mgr
- the PersistenceManager- Returns:
- a failure continuation
-
getStoreContinuation
Continuation<? super T> getStoreContinuation(com.oracle.coherence.persistence.PersistentStore<R> store)
Return a failure continuation to handle unexpected exceptions thrown by operations against the specified PersistentStore.- Parameters:
store
- the PersistentStore- Returns:
- a failure continuation
-
-