public class SharedProducerServicePool extends DefaultProducerServicePool implements ShutdownableService, StaticService
DefaultProducerServicePool which is used by
CamelContext by default.capacity, log, poolshutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
SharedProducerServicePool() |
SharedProducerServicePool(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doShutdown()
Implementations override this method to perform customized shutdown.
|
protected void |
doStop()
Implementations override this method to support customized start/stop.
|
acquire, addAndAcquire, doStart, getCapacity, purge, release, setCapacity, sizedoResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshutdownpublic SharedProducerServicePool()
public SharedProducerServicePool(int capacity)
protected void doStop()
throws Exception
ServiceSupportServiceSupport.doStop() method when
the service is being stopped. This method will also be invoked
if the service is still in uninitialized state (eg has not
been started). The method is always called to allow the service
to do custom logic when the service is being stopped, such as when
CamelContext is shutting down.doStop in class DefaultServicePool<Endpoint,Producer>ExceptionServiceSupport.doStart()protected void doShutdown()
throws Exception
ServiceSupportdoShutdown in class ServiceSupportExceptionApache Camel