public class GracefulShutdownService extends Object implements org.jboss.msc.service.Service<GracefulShutdownService>
| Modifier and Type | Field and Description |
|---|---|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME |
| Constructor and Description |
|---|
GracefulShutdownService() |
| Modifier and Type | Method and Description |
|---|---|
void |
awaitSuspend() |
org.jboss.msc.value.InjectedValue<SuspendController> |
getSuspendControllerInjectedValue() |
GracefulShutdownService |
getValue() |
void |
start(org.jboss.msc.service.StartContext context) |
void |
startGracefulShutdown() |
void |
stop(org.jboss.msc.service.StopContext context) |
public void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.Serviceorg.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.Servicepublic void startGracefulShutdown()
public void awaitSuspend()
public org.jboss.msc.value.InjectedValue<SuspendController> getSuspendControllerInjectedValue()
public GracefulShutdownService getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<GracefulShutdownService>IllegalStateExceptionIllegalArgumentExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.