- All Known Implementing Classes:
Context
public interface Resource
An interface for receiving checkpoint/restore notifications.
The class that is interested in receiving a checkpoint/restore notification
implements this interface, and the object created with that class is
registered with a Context, using register method.
-
Method Summary
Modifier and TypeMethodDescriptionvoidafterRestore(Context<? extends Resource> context) Invoked by aContextas a notification about restore.voidbeforeCheckpoint(Context<? extends Resource> context) Invoked by aContextas a notification about checkpoint.
-
Method Details
-
beforeCheckpoint
Invoked by aContextas a notification about checkpoint.- Parameters:
context-Contextproviding notification- Throws:
Exception- if the method have failed
-
afterRestore
Invoked by aContextas a notification about restore.- Parameters:
context-Contextproviding notification- Throws:
Exception- if the method have failed
-