Class AbstractChannelOpenListenerService

  • All Implemented Interfaces:
    org.jboss.msc.Service, org.jboss.remoting3.OpenListener

    public abstract class AbstractChannelOpenListenerService
    extends Object
    implements org.jboss.msc.Service, org.jboss.remoting3.OpenListener
    Abstract service responsible for listening for channel open requests.
    Author:
    Kabir Khan, Emanuel Muckenhuber, Richard Opalka
    • Field Detail

      • CHANNEL_SHUTDOWN_TIMEOUT

        protected static final int CHANNEL_SHUTDOWN_TIMEOUT
        How long we wait for active operations to clear before allowing channel close to proceed
      • channelName

        protected final String channelName
    • Method Detail

      • start

        public void start​(org.jboss.msc.service.StartContext context)
                   throws org.jboss.msc.service.StartException
        Specified by:
        start in interface org.jboss.msc.Service
        Throws:
        org.jboss.msc.service.StartException
      • stop

        public void stop​(org.jboss.msc.service.StopContext context)
        Specified by:
        stop in interface org.jboss.msc.Service
      • channelOpened

        public void channelOpened​(org.jboss.remoting3.Channel channel)
        Specified by:
        channelOpened in interface org.jboss.remoting3.OpenListener
      • registrationTerminated

        public void registrationTerminated()
        Specified by:
        registrationTerminated in interface org.jboss.remoting3.OpenListener
      • handleChannelOpened

        protected abstract org.jboss.as.protocol.mgmt.support.ManagementChannelShutdownHandle handleChannelOpened​(org.jboss.remoting3.Channel channel)
        Handle a channel open event.
        Parameters:
        channel - the opened channel
        Returns:
        the shutdown handle
      • execute

        protected abstract void execute​(Runnable runnable)
        Execute the shutdown task.
        Parameters:
        runnable - the runnable