public class SuspendController extends Object implements org.jboss.msc.service.Service<SuspendController>
ServerActivity
instance
can be registered directly with this controller.Modifier and Type | Class and Description |
---|---|
static class |
SuspendController.State |
Modifier and Type | Field and Description |
---|---|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME |
Constructor and Description |
---|
SuspendController() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(OperationListener listener) |
SuspendController.State |
getState() |
SuspendController |
getValue() |
void |
registerActivity(ServerActivity activity) |
void |
removeListener(OperationListener listener) |
void |
resume() |
void |
start(org.jboss.msc.service.StartContext startContext) |
void |
stop(org.jboss.msc.service.StopContext stopContext) |
void |
suspend(long timeoutMillis) |
void |
unRegisterActivity(ServerActivity activity) |
public void suspend(long timeoutMillis)
public void resume()
public void registerActivity(ServerActivity activity)
public void unRegisterActivity(ServerActivity activity)
public void start(org.jboss.msc.service.StartContext startContext) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<SuspendController>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext stopContext)
stop
in interface org.jboss.msc.service.Service<SuspendController>
public SuspendController.State getState()
public void addListener(OperationListener listener)
public void removeListener(OperationListener listener)
public SuspendController getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<SuspendController>
IllegalStateException
IllegalArgumentException
Copyright © 2023 JBoss by Red Hat. All rights reserved.