- java.lang.Object
-
- jdk.crac.Context<R>
-
- All Implemented Interfaces:
Resource
public abstract class Context<R extends Resource> extends Object implements Resource
AResourcethat allows otherResources to be registered with it.Contextimplementation overridesbeforeCheckpointandafterRestore, defining how the notification about checkpoint and restore will be distributed by theContexthierarchy.A
Contextimplementor is encouraged to respect properties of the globalContext.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedContext()Creates aContext.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidregister(R resource)Registers aResourcewith thisContext.-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods declared in interface jdk.crac.Resource
afterRestore, beforeCheckpoint
-
-
-
-
Method Detail
-
register
public abstract void register(R resource)
Registers aResourcewith thisContext.- Parameters:
resource-Resourceto be registered.- Throws:
NullPointerException- ifresourceisnull
-
-