18#ifndef _ACTIVEMQ_UTIL_SERVICESUPPORT_H_
19#define _ACTIVEMQ_UTIL_SERVICESUPPORT_H_
#define AMQCPP_API
Definition Config.h:30
Base interface for all classes that run as a Service inside the application.
Definition Service.h:31
Listener interface for observers of Service related events.
Definition ServiceListener.h:33
Definition ServiceStopper.h:30
void removeServiceListener(ServiceListener *llistener)
Removes the given listener to this Service's list of listeners, call retains ownership of the pointer...
ServiceSupport(const ServiceSupport &)
static void dispose(Service *service)
Safely shuts down a service.
void start()
Starts the Service, notifying any registered listeners of the start if it is successful.
ServiceSupport & operator=(const ServiceSupport &)
virtual ~ServiceSupport()
void addServiceListener(ServiceListener *listener)
Adds the given listener to this Service's list of listeners, call retains ownership of the pointer.
virtual void doStop(ServiceStopper *stopper)=0
Performs the actual stop operation on the service, ensuring that all resources held are released,...
void stop()
Stops the Service.
virtual void doStart()=0
Performs the actual start operation on the service, acquiring all the resources needed to run the ser...
Definition ArrayList.h:39
A boolean value that may be updated atomically.
Definition AtomicBoolean.h:34
Definition ActiveMQMessageTransformation.h:36
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition CachedConsumer.h:24