org.apache.camel
Interface ShutdownableService

All Superinterfaces:
Service
All Known Subinterfaces:
ExecutorServiceStrategy
All Known Implementing Classes:
ActivityMonitorEngine, ActivityRules, AggregateProcessor, AMQPComponent, AOPProcessor, AtomComponent, AtomEntryPollingConsumer, AtomPollingConsumer, AtomProducer, BaseTypeConverterRegistry, BatchProcessor, BeanComponent, BeanProcessor, BeanValidatorComponent, BlueprintCamelContext, BrowseComponent, CacheComponent, CacheConsumer, CacheManagerFactory, CacheProducer, CatchProcessor, ChoiceProcessor, ClassComponent, CollectionProducer, CometdComponent, CometdConsumer, CometdProducer, ConsumerCache, CronScheduledRoutePolicy, CxfBeanComponent, CxfComponent, CxfConsumer, CxfProducer, CxfRsComponent, CxfRsConsumer, CxfRsProducer, DataSetComponent, DataSetConsumer, DeadLetterChannel, DefaultAsyncProducer, DefaultCamelContext, DefaultChannel, DefaultComponent, DefaultConsumer, DefaultConsumerTemplate, DefaultErrorHandler, DefaultExecutorServiceStrategy, DefaultInflightRepository, DefaultManagementAgent, DefaultProducer, DefaultProducerServicePool, DefaultProducerTemplate, DefaultRoute, DefaultScheduledPollConsumer, DefaultServicePool, DefaultShutdownStrategy, DefaultTypeConverter, Delayer, DelayInterceptor, DelayProcessorSupport, DelegateAsyncProcessor, DelegateProcessor, DigitalSignatureComponent, DigitalSignatureProducer, DirectComponent, DirectConsumer, DirectProducer, DynamicRouter, EjbComponent, Enricher, ErrorHandlerSupport, EventComponent, EventConsumer, EventDrivenConsumerRoute, EventDrivenPollingConsumer, EventNotifierSupport, ExecComponent, ExecProducer, FailOverLoadBalancer, FeedComponent, FeedEntryPollingConsumer, FeedPollingConsumer, FileComponent, FileConsumer, FilterProcessor, FlatpackComponent, FreemarkerComponent, FtpComponent, FtpConsumer, FtpsComponent, GaeDefaultCamelContext, GaeSpringCamelContext, GAuthComponent, GAuthProducer, GenericFileComponent, GenericFileConsumer, GenericFileProducer, GHttpComponent, GHttpProducer, GLoginComponent, GLoginProducer, GMailComponent, GMailProducer, GTaskComponent, GTaskProducer, GuiceCamelContext, HandleFaultInterceptor, HawtDBAggregationRepository, HeaderFilterStrategyComponent, HttpComponent, HttpComponent, HttpConsumer, HttpConsumer, HttpPollingConsumer, HttpPollingConsumer, HttpProducer, HttpProducer, IBatisComponent, IBatisPollingConsumer, IBatisProducer, IdempotentConsumer, InstrumentationProcessor, InterceptEndpointProcessor, InterceptorToAsyncProcessorBridge, IrcComponent, IrcConsumer, IrcProducer, JavaSpaceComponent, JavaSpaceConsumer, JavaSpaceProducer, JcrComponent, JcrProducer, JdbcComponent, JdbcProducer, JettyHttpComponent, JettyHttpProducer, JingComponent, JmsComponent, JmsConsumer, JmsPollingConsumer, JmsProducer, JMXComponent, JMXConsumer, JmxNotificationEventNotifier, JpaComponent, JpaConsumer, JpaProducer, Jt400Component, Jt400DataQueueConsumer, Jt400DataQueueProducer, LanguageComponent, LanguageProducer, LazyLoadingTypeConverter, LdapComponent, LdapProducer, LoadBalancerConsumer, LoadBalancerSupport, LogComponent, LoggingErrorHandler, LoggingEventNotifier, LoopProcessor, LuceneComponent, LuceneIndexProducer, LuceneQueryProducer, MailComponent, MailConsumer, MailProducer, Main, Main, Main, Main, MainSupport, MemoryAggregationRepository, MinaComponent, MinaConsumer, MinaProducer, MockComponent, MsvComponent, MulticastProcessor, NagiosComponent, NagiosEventNotifier, NagiosProducer, NettyComponent, NettyConsumer, NettyProducer, OnCompletionProcessor, OsgiDefaultCamelContext, OsgiSpringCamelContext, OsgiTypeConverter, PersistentQueueReplyManager, Pipeline, PollEnricher, PollingConsumerSupport, PrinterComponent, PrinterProducer, ProcessorPollingConsumer, ProcessRules, ProducerCache, PropertiesComponent, PublishEventNotifier, QuartzComponent, QuartzConsumer, QueueLoadBalancer, QuickfixjComponent, QuickfixjConsumer, QuickfixjProducer, RandomLoadBalancer, RecipientList, RecipientListProcessor, RedeliveryErrorHandler, RefComponent, RelaxNGCompactSyntaxComponent, RemoteFileComponent, RemoteFileConsumer, RemoteFileProducer, ReplyManagerSupport, Resequencer, ResourceBasedComponent, RestletComponent, RestletConsumer, RestletProducer, RmiComponent, RmiConsumer, RmiProducer, RoundRobinLoadBalancer, RoutePolicyProcessor, RoutePolicySupport, RouteService, RoutingSlip, RssComponent, RssEntryPollingConsumer, RssPollingConsumer, SamplingThrottler, ScheduledPollConsumer, ScheduledRoutePolicy, SedaComponent, SedaConsumer, SedaProducer, SendProcessor, ServiceSupport, ServletComponent, SftpComponent, SftpConsumer, SharedProducerServicePool, SimpleLoadBalancerSupport, SimpleScheduledRoutePolicy, SipComponent, SipPresenceAgent, SipPublisher, SipSubscriber, SmppComponent, SmppConsumer, SmppProducer, SnmpComponent, SnmpOIDPoller, SnmpTrapConsumer, Splitter, SpringCamelContext, SpringIntegrationComponent, SpringIntegrationConsumer, SpringIntegrationProducer, SpringWebserviceComponent, SpringWebserviceConsumer, SpringWebserviceProducer, SqlComponent, SqlProducer, StickyLoadBalancer, StreamCachingInterceptor, StreamComponent, StreamConsumer, StreamProducer, StreamResequencer, StringTemplateComponent, TemporalRule, TemporaryQueueReplyManager, TestComponent, ThreadsProcessor, Throttler, ThrottlingInflightRoutePolicy, TimerComponent, TimerConsumer, TopicLoadBalancer, TraceInterceptor, TransactionErrorHandler, TryProcessor, UnitOfWorkProcessor, ValidatorComponent, VelocityComponent, VmComponent, WeightedLoadBalancer, WeightedRandomLoadBalancer, WeightedRoundRobinLoadBalancer, WireTapProcessor, WrapProcessor, XmppComponent, XmppConsumer, XmppGroupChatProducer, XmppPrivateChatProducer, XQueryComponent, XsltComponent

public interface ShutdownableService
extends Service

A Service which is also capable of shutting down.

This is useable for services which needs more fine grained control when CamelContext is shutting down. Then its possible to have different behavior when stopping or shutting down.

For example to shutdown thread pools on shutdown and not on stop.

Version:
$Revision: 18301 $

Method Summary
 void shutdown()
          Shutdown the service, which means it cannot be started again.
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Method Detail

shutdown

void shutdown()
              throws Exception
Shutdown the service, which means it cannot be started again.

Throws:
Exception - is thrown if shutting down failed


Apache CAMEL