Class MllpProducer

  • All Implemented Interfaces:
    AutoCloseable, org.apache.camel.EndpointAware, org.apache.camel.IsSingleton, org.apache.camel.Processor, org.apache.camel.Producer, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

    public class MllpProducer
    extends org.apache.camel.support.DefaultProducer
    MllpProducer wraps a MinaProducer for having a hook to shutdown some Mina resources when the consumer is closing
    • Method Detail

      • stop

        public void stop()
        Specified by:
        stop in interface org.apache.camel.Service
        Overrides:
        stop in class org.apache.camel.support.service.BaseService
      • doStop

        protected void doStop()
                       throws Exception
        Hack to circumvent accessing private members of the super class with the effect that disposing the connector does NOT wait indefinitely.
        Overrides:
        doStop in class org.apache.camel.support.DefaultProducer
        Throws:
        Exception
      • getEndpoint

        public org.apache.camel.component.mina.MinaEndpoint getEndpoint()
        Specified by:
        getEndpoint in interface org.apache.camel.EndpointAware
        Overrides:
        getEndpoint in class org.apache.camel.support.DefaultProducer
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.apache.camel.IsSingleton
        Overrides:
        isSingleton in class org.apache.camel.support.DefaultProducer
      • process

        public void process​(org.apache.camel.Exchange exchange)
                     throws Exception
        Throws:
        Exception
      • getFilterChain

        public org.apache.mina.core.filterchain.DefaultIoFilterChainBuilder getFilterChain()
      • createExchange

        public org.apache.camel.Exchange createExchange()
        Overrides:
        createExchange in class org.apache.camel.support.DefaultProducer
      • build

        public void build()
        Specified by:
        build in interface org.apache.camel.Service
        Overrides:
        build in class org.apache.camel.support.service.BaseService
      • init

        public void init()
        Specified by:
        init in interface org.apache.camel.Service
        Overrides:
        init in class org.apache.camel.support.service.BaseService
      • start

        public void start()
        Specified by:
        start in interface org.apache.camel.Service
        Overrides:
        start in class org.apache.camel.support.service.BaseService
      • suspend

        public void suspend()
        Specified by:
        suspend in interface org.apache.camel.SuspendableService
        Overrides:
        suspend in class org.apache.camel.support.service.BaseService
      • resume

        public void resume()
        Specified by:
        resume in interface org.apache.camel.SuspendableService
        Overrides:
        resume in class org.apache.camel.support.service.BaseService
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface org.apache.camel.ShutdownableService
        Overrides:
        shutdown in class org.apache.camel.support.service.BaseService
      • getStatus

        public org.apache.camel.ServiceStatus getStatus()
        Specified by:
        getStatus in interface org.apache.camel.StatefulService
        Overrides:
        getStatus in class org.apache.camel.support.service.BaseService
      • isNew

        public boolean isNew()
        Overrides:
        isNew in class org.apache.camel.support.service.BaseService
      • isBuild

        public boolean isBuild()
        Overrides:
        isBuild in class org.apache.camel.support.service.BaseService
      • isInit

        public boolean isInit()
        Overrides:
        isInit in class org.apache.camel.support.service.BaseService
      • isStarted

        public boolean isStarted()
        Specified by:
        isStarted in interface org.apache.camel.StatefulService
        Overrides:
        isStarted in class org.apache.camel.support.service.BaseService
      • isStarting

        public boolean isStarting()
        Specified by:
        isStarting in interface org.apache.camel.StatefulService
        Overrides:
        isStarting in class org.apache.camel.support.service.BaseService
      • isStopping

        public boolean isStopping()
        Specified by:
        isStopping in interface org.apache.camel.StatefulService
        Overrides:
        isStopping in class org.apache.camel.support.service.BaseService
      • isStopped

        public boolean isStopped()
        Specified by:
        isStopped in interface org.apache.camel.StatefulService
        Overrides:
        isStopped in class org.apache.camel.support.service.BaseService
      • isSuspending

        public boolean isSuspending()
        Specified by:
        isSuspending in interface org.apache.camel.StatefulService
        Overrides:
        isSuspending in class org.apache.camel.support.service.BaseService
      • isSuspended

        public boolean isSuspended()
        Specified by:
        isSuspended in interface org.apache.camel.SuspendableService
        Overrides:
        isSuspended in class org.apache.camel.support.service.BaseService
      • isRunAllowed

        public boolean isRunAllowed()
        Specified by:
        isRunAllowed in interface org.apache.camel.StatefulService
        Overrides:
        isRunAllowed in class org.apache.camel.support.service.BaseService
      • isShutdown

        public boolean isShutdown()
        Overrides:
        isShutdown in class org.apache.camel.support.service.BaseService
      • isStoppingOrStopped

        public boolean isStoppingOrStopped()
        Overrides:
        isStoppingOrStopped in class org.apache.camel.support.service.BaseService
      • isSuspendingOrSuspended

        public boolean isSuspendingOrSuspended()
        Overrides:
        isSuspendingOrSuspended in class org.apache.camel.support.service.BaseService
      • isStartingOrStarted

        public boolean isStartingOrStarted()
        Overrides:
        isStartingOrStarted in class org.apache.camel.support.service.BaseService