Package org.jboss.as.server.suspend
Interface SuspendableActivityRegistry
- All Superinterfaces:
SuspensionStateProvider
- All Known Implementing Classes:
SuspendController
A registry of suspendable server activity.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceIdentifies a priority group of suspendable activity.Nested classes/interfaces inherited from interface org.jboss.as.server.suspend.SuspensionStateProvider
SuspensionStateProvider.State -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.wildfly.service.descriptor.NullaryServiceDescriptor<SuspendableActivityRegistry> -
Method Summary
Modifier and TypeMethodDescriptiondefault voidregisterActivity(SuspendableActivity activity) Registers the specifiedSuspendableActivityto this registry usingSuspendableActivityRegistry.SuspendPriority.DEFAULT.voidregisterActivity(SuspendableActivity activity, SuspendableActivityRegistry.SuspendPriority priority) Registers the specifiedSuspendableActivityto this registry using the specified priority.voidunregisterActivity(SuspendableActivity activity) Unregisters the specifiedSuspendableActivityfrom this registry, if it was previously added.Methods inherited from interface org.jboss.as.server.suspend.SuspensionStateProvider
getState
-
Field Details
-
SERVICE_DESCRIPTOR
static final org.wildfly.service.descriptor.NullaryServiceDescriptor<SuspendableActivityRegistry> SERVICE_DESCRIPTOR
-
-
Method Details
-
registerActivity
Registers the specifiedSuspendableActivityto this registry usingSuspendableActivityRegistry.SuspendPriority.DEFAULT.- Parameters:
activity- suspendable activity that should complete prior to suspending/resuming the server
-
registerActivity
void registerActivity(SuspendableActivity activity, SuspendableActivityRegistry.SuspendPriority priority) Registers the specifiedSuspendableActivityto this registry using the specified priority. If this activity was already added to this registry, it will retain its original priority.- Parameters:
activity- suspendable activity that should complete prior to suspending/resuming the serverpriority- the priority group with which this activity should be registered
-
unregisterActivity
Unregisters the specifiedSuspendableActivityfrom this registry, if it was previously added.- Parameters:
activity- suspendable activity previously registered viaregisterActivity(SuspendableActivity)orregisterActivity(SuspendableActivity, SuspendPriority).
-