org.fusesource.fabric.dosgi.io
Interface Service

All Known Subinterfaces:
ClientInvoker, ServerInvoker, Transport, TransportServer
All Known Implementing Classes:
ClientInvokerImpl, ClientInvokerImpl.InvokerTransportPool, ServerInvokerImpl, TcpTransport, TcpTransportServer, TransportPool

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()
Stops the service. No guarantee is given that the service has fully stopped by the time this method returns.


stop

void stop(java.lang.Runnable onComplete)
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.


Copyright © 2013 Red Hat. All Rights Reserved.