Package org.jboss.as.server.suspend
Interface SuspendableActivityRegistry
-
- All Superinterfaces:
SuspensionStateProvider
- All Known Implementing Classes:
SuspendController
public interface SuspendableActivityRegistry extends SuspensionStateProvider
A registry of suspendable server activity.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceSuspendableActivityRegistry.SuspendPriorityIdentifies a priority group of suspendable activity.-
Nested classes/interfaces inherited from interface org.jboss.as.server.suspend.SuspensionStateProvider
SuspensionStateProvider.State
-
-
Field Summary
Fields Modifier and Type Field Description static org.wildfly.service.descriptor.NullaryServiceDescriptor<SuspendableActivityRegistry>SERVICE_DESCRIPTOR
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default 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 Detail
-
SERVICE_DESCRIPTOR
static final org.wildfly.service.descriptor.NullaryServiceDescriptor<SuspendableActivityRegistry> SERVICE_DESCRIPTOR
-
-
Method Detail
-
registerActivity
default void registerActivity(SuspendableActivity activity)
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
void unregisterActivity(SuspendableActivity activity)
Unregisters the specifiedSuspendableActivityfrom this registry, if it was previously added.- Parameters:
activity- suspendable activity previously registered viaregisterActivity(SuspendableActivity)orregisterActivity(SuspendableActivity, SuspendPriority).
-
-