Interface Service

All Superinterfaces:
Stoppable
All Known Subinterfaces:
ServiceAdaptor
All Known Implementing Classes:
BadBeanFilter, BusCollect, BusLimit, BusQueue, FileWatchService, JettyHttpServer, OddJobWebUiServer, PathWatchEvents, ServiceMethodAdaptor

public interface Service extends Stoppable
Definition of a Service. A service is different to a job in that it is not intended to complete without being stopped.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Start the service.

    Methods inherited from interface org.oddjob.Stoppable

    stop
  • Method Details

    • start

      void start() throws Exception
      Start the service.
      Throws:
      Exception - If the service can't be started.