- 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 TypeMethodDescriptionvoid
afterRestore
(Context<? extends Resource> context) Invoked by aContext
as a notification about restore.void
beforeCheckpoint
(Context<? extends Resource> context) Invoked by aContext
as a notification about checkpoint.
-
Method Details
-
beforeCheckpoint
Invoked by aContext
as a notification about checkpoint.- Parameters:
context
-Context
providing notification- Throws:
Exception
- if the method have failed
-
afterRestore
Invoked by aContext
as a notification about restore.- Parameters:
context
-Context
providing notification- Throws:
Exception
- if the method have failed
-