Class DefaultNettySharedHttpServer

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.component.netty.http.DefaultNettySharedHttpServer
All Implemented Interfaces:
AutoCloseable, NettySharedHttpServer, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class DefaultNettySharedHttpServer extends org.apache.camel.support.service.ServiceSupport implements NettySharedHttpServer
A default NettySharedHttpServer to make sharing Netty server in Camel applications easier.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.apache.camel.support.service.BaseService

    BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     
    int
    Number of consumers using this shared Netty HTTP server.
    int
    Gets the port number this Netty HTTP server uses.
    org.apache.camel.component.netty.NettyServerBootstrapFactory
    Gets the NettyServerBootstrapFactory to use.
    void
    setCamelContext(org.apache.camel.CamelContext camelContext)
    The CamelContext
    void
    Sets the bootstrap configuration to use by this shared Netty HTTP server.
    void
    setStartServer(boolean startServer)
    Whether to start the Netty HTTP server eager and bind to the port, or wait on first demand
    void
    Sets a custom thread name pattern to be used for naming the Netty HTTP server threads.

    Methods inherited from class org.apache.camel.support.service.BaseService

    build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.camel.Service

    build, close, init, start, stop

    Methods inherited from interface org.apache.camel.ShutdownableService

    shutdown

    Methods inherited from interface org.apache.camel.StatefulService

    getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending

    Methods inherited from interface org.apache.camel.SuspendableService

    isSuspended, resume, suspend