public abstract class AbstractChannelOpenListenerService extends Object implements org.jboss.msc.Service, org.jboss.remoting3.OpenListener
| Modifier and Type | Field and Description |
|---|---|
protected static int |
CHANNEL_SHUTDOWN_TIMEOUT
How long we wait for active operations to clear before allowing channel close to proceed
|
protected String |
channelName |
| Constructor and Description |
|---|
AbstractChannelOpenListenerService(Supplier<org.jboss.remoting3.Endpoint> endpointSupplier,
Supplier<ManagementChannelRegistryService> registrySupplier,
String channelName,
org.xnio.OptionMap optionMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelOpened(org.jboss.remoting3.Channel channel) |
protected abstract void |
execute(Runnable runnable)
Execute the shutdown task.
|
protected abstract org.jboss.as.protocol.mgmt.support.ManagementChannelShutdownHandle |
handleChannelOpened(org.jboss.remoting3.Channel channel)
Handle a channel open event.
|
void |
registrationTerminated() |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
protected static final int CHANNEL_SHUTDOWN_TIMEOUT
protected final String channelName
public AbstractChannelOpenListenerService(Supplier<org.jboss.remoting3.Endpoint> endpointSupplier, Supplier<ManagementChannelRegistryService> registrySupplier, String channelName, org.xnio.OptionMap optionMap)
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 channelOpened(org.jboss.remoting3.Channel channel)
channelOpened in interface org.jboss.remoting3.OpenListenerpublic void registrationTerminated()
registrationTerminated in interface org.jboss.remoting3.OpenListenerprotected abstract org.jboss.as.protocol.mgmt.support.ManagementChannelShutdownHandle handleChannelOpened(org.jboss.remoting3.Channel channel)
channel - the opened channelprotected abstract void execute(Runnable runnable)
runnable - the runnableCopyright © 2021 JBoss by Red Hat. All rights reserved.