java.lang.Object
jdk.crac.Context<R>
- All Implemented Interfaces:
Resource
public abstract class Context<R extends Resource> extends Object implements Resource
A
Resource
that allows other Resource
s to be registered with it.
Context
implementation overrides beforeCheckpoint
and afterRestore
, defining how the notification about checkpoint and restore will be distributed by the Context
hierarchy.
A Context
implementor is encouraged to respect properties of the global Context
.
-
Constructor Details
-
Context
protected Context()Creates aContext
.
-
-
Method Details
-
register
Registers aResource
with thisContext
.- Parameters:
resource
-Resource
to be registered.- Throws:
NullPointerException
- ifresource
isnull
-