org.apache.camel
Interface Service

All Known Subinterfaces:
BatchConsumer, CamelContext, Consumer, ConsumerTemplate, InflightRepository, ManagementAgent, ManagementStrategy, PollingConsumer, Producer, ProducerTemplate, ServicePool<Key,Service>, ShutdownStrategy, SuspendableService
All Known Implementing Classes:
Aggregator, AOPProcessor, BatchProcessor, BeanComponent, BeanProcessor, BrowseComponent, BrowseEndpoint, CatchProcessor, ChoiceProcessor, CollectionProducer, ConsumerCache, DataSetComponent, DataSetConsumer, DataSetEndpoint, DeadLetterChannel, DefaultCamelContext, DefaultChannel, DefaultComponent, DefaultConsumer, DefaultConsumerTemplate, DefaultErrorHandler, DefaultInflightRepository, DefaultManagementAgent, DefaultManagementLifecycleStrategy, DefaultManagementStrategy, DefaultProducer, DefaultProducerServicePool, DefaultProducerTemplate, DefaultRoute, DefaultScheduledPollConsumer, DefaultServicePool, DefaultShutdownStrategy, DefaultTypeConverter, DefaultUnitOfWork, Delayer, DelayInterceptor, DelayProcessorSupport, DelegateProcessor, DirectComponent, DirectConsumer, DirectProducer, Enricher, ErrorHandlerSupport, EventDrivenConsumerRoute, EventDrivenPollingConsumer, EventNotifierSupport, FailOverLoadBalancer, FileComponent, FileConsumer, FilterProcessor, GenericFileComponent, GenericFileConsumer, GenericFileProducer, HandleFaultInterceptor, HeaderFilterStrategyComponent, IdempotentConsumer, InstrumentationProcessor, InterceptEndpointProcessor, LoadBalancerConsumer, LoadBalancerSupport, LogComponent, LoggingErrorHandler, LoggingEventNotifier, LoopProcessor, MainSupport, ManagedManagementStrategy, MockComponent, MulticastProcessor, OnCompletionProcessor, Pipeline, PollEnricher, PollingConsumerSupport, ProcessorPollingConsumer, ProducerCache, PublishEventNotifier, QueueLoadBalancer, RandomLoadBalancer, RecipientList, RedeliveryErrorHandler, RefComponent, Resequencer, RoundRobinLoadBalancer, RoutePolicyProcessor, RoutePolicySupport, RouteService, RoutingSlip, SamplingThrottler, ScheduledPollConsumer, SedaComponent, SedaConsumer, SedaProducer, SendAsyncProcessor, SendProcessor, ServiceSupport, SetBodyProcessor, SharedProducerServicePool, Splitter, StickyLoadBalancer, StreamCachingInterceptor, StreamResequencer, ThreadsProcessor, Throttler, ThrottlingInflightRoutePolicy, TimerComponent, TimerConsumer, TopicLoadBalancer, TraceInterceptor, Tracer, TransformProcessor, TryProcessor, UnitOfWorkProcessor, VmComponent, WireTapProcessor, XPathBuilder

public interface Service

Represents the core lifecycle API for POJOs which can be started and stopped

Version:
$Revision: 807573 $

Method Summary
 void start()
          Starts the service
 void stop()
          Stops the service
 

Method Detail

start

void start()
           throws Exception
Starts the service

Throws:
Exception - is thrown if starting failed

stop

void stop()
          throws Exception
Stops the service

Throws:
Exception - is thrown if stopping failed


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.