org.apache.activemq.apollo.util
Interface Service

All Known Implementing Classes:
JavaBaseService, ServiceSupport

public interface Service

The core lifecyle interface for ActiveMQ components.

Version:
$Revision: 1.1 $

Method Summary
 void start()
          Starts the service.
 void start(java.lang.Runnable onComplete)
          Starts the service.
 void stop()
          Stops the service.
 void stop(java.lang.Runnable onComplete)
          Stops the service.
 

Method Detail

start

void start()
           throws java.lang.Exception
Starts the service. No guarantee is given that the service has fully started by the time this method returns.

Throws:
java.lang.Exception

start

void start(java.lang.Runnable onComplete)
           throws java.lang.Exception
Starts the service. Executes the onComplete runnable once the service has fully started up.

Parameters:
onComplete - my be set to null if not interested in a callback.
Throws:
java.lang.Exception

stop

void stop()
          throws java.lang.Exception
Stops the service. No guarantee is given that the service has fully stopped by the time this method returns.

Throws:
java.lang.Exception

stop

void stop(java.lang.Runnable onComplete)
          throws java.lang.Exception
Stops the service. Executes the onComplete runnable once the service has fully stopped.

Parameters:
onComplete - my be set to null if not interested in a callback.
Throws:
java.lang.Exception


Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.