org.fusesource.stompjms.client.transport
Class BaseService

java.lang.Object
  extended by org.fusesource.stompjms.client.transport.BaseService
Direct Known Subclasses:
TcpTransport

public abstract class BaseService
extends java.lang.Object

The BaseService provides helpers for dealing async service state.

Author:
Hiram Chirino

Nested Class Summary
static class BaseService.STARTING
           
static class BaseService.State
           
static class BaseService.STOPPING
           
 
Field Summary
protected  BaseService.State _serviceState
           
static BaseService.State CREATED
           
static BaseService.State STARTED
           
static BaseService.State STOPPED
           
 
Constructor Summary
BaseService()
           
 
Method Summary
protected abstract  void _start(java.lang.Runnable onCompleted)
           
protected abstract  void _stop(java.lang.Runnable onCompleted)
           
protected abstract  org.fusesource.hawtdispatch.DispatchQueue getDispatchQueue()
           
protected  BaseService.State getServiceState()
           
 void start(java.lang.Runnable onCompleted)
           
 void stop(java.lang.Runnable onCompleted)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATED

public static final BaseService.State CREATED

STARTED

public static final BaseService.State STARTED

STOPPED

public static final BaseService.State STOPPED

_serviceState

protected BaseService.State _serviceState
Constructor Detail

BaseService

public BaseService()
Method Detail

start

public final void start(java.lang.Runnable onCompleted)

stop

public final void stop(java.lang.Runnable onCompleted)

getServiceState

protected BaseService.State getServiceState()

getDispatchQueue

protected abstract org.fusesource.hawtdispatch.DispatchQueue getDispatchQueue()

_start

protected abstract void _start(java.lang.Runnable onCompleted)

_stop

protected abstract void _stop(java.lang.Runnable onCompleted)


Copyright © 2010-2011 FuseSource, Corp.. All Rights Reserved.