Package org.jboss.as.clustering.service
Class SuspendableService
java.lang.Object
org.jboss.as.clustering.service.SuspendableService
- All Implemented Interfaces:
org.jboss.as.server.suspend.SuspendableActivity,org.wildfly.clustering.server.service.Service
public class SuspendableService
extends Object
implements org.wildfly.clustering.server.service.Service, org.jboss.as.server.suspend.SuspendableActivity
A
Service decorator that auto-stops on server suspend and auto-starts on server resume.- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.jboss.as.server.suspend.SuspendableActivity
COMPLETED -
Constructor Summary
ConstructorsConstructorDescriptionSuspendableService(org.wildfly.clustering.server.service.Service service, org.jboss.as.server.suspend.SuspendableActivityRegistry registry, Executor executor) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.as.server.suspend.SuspendableActivity
prepare
-
Constructor Details
-
SuspendableService
public SuspendableService(org.wildfly.clustering.server.service.Service service, org.jboss.as.server.suspend.SuspendableActivityRegistry registry, Executor executor)
-
-
Method Details
-
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceorg.wildfly.clustering.server.service.Service
-
start
public void start()- Specified by:
startin interfaceorg.wildfly.clustering.server.service.Service
-
stop
public void stop()- Specified by:
stopin interfaceorg.wildfly.clustering.server.service.Service
-
suspend
- Specified by:
suspendin interfaceorg.jboss.as.server.suspend.SuspendableActivity
-
resume
- Specified by:
resumein interfaceorg.jboss.as.server.suspend.SuspendableActivity
-