Provides a base class for Service implementations.
More...
#include <src/main/activemq/util/ServiceSupport.h>
|
virtual void | doStop (ServiceStopper *stopper)=0 |
| Performs the actual stop operation on the service, ensuring that all resources held are released, must be implemented in derived class.
|
|
virtual void | doStart ()=0 |
| Performs the actual start operation on the service, acquiring all the resources needed to run the service.
|
|
Provides a base class for Service implementations.
- Since
- 3.3.0
◆ ServiceSupport() [1/2]
◆ ServiceSupport() [2/2]
activemq::util::ServiceSupport::ServiceSupport |
( |
| ) |
|
◆ ~ServiceSupport()
virtual activemq::util::ServiceSupport::~ServiceSupport |
( |
| ) |
|
|
virtual |
◆ addServiceListener()
void activemq::util::ServiceSupport::addServiceListener |
( |
ServiceListener * | listener | ) |
|
Adds the given listener to this Service's list of listeners, call retains ownership of the pointer.
◆ dispose()
static void activemq::util::ServiceSupport::dispose |
( |
Service * | service | ) |
|
|
static |
Safely shuts down a service.
- Parameters
-
service | The service to stop. |
◆ doStart()
virtual void activemq::util::ServiceSupport::doStart |
( |
| ) |
|
|
protectedpure virtual |
Performs the actual start operation on the service, acquiring all the resources needed to run the service.
Must be implemented in derived class.
Implemented in activemq::threads::Scheduler.
◆ doStop()
virtual void activemq::util::ServiceSupport::doStop |
( |
ServiceStopper * | stopper | ) |
|
|
protectedpure virtual |
Performs the actual stop operation on the service, ensuring that all resources held are released, must be implemented in derived class.
Implemented in activemq::threads::Scheduler.
◆ isStarted()
bool activemq::util::ServiceSupport::isStarted |
( |
| ) |
const |
- Returns
- true if this service has been started
◆ isStopped()
bool activemq::util::ServiceSupport::isStopped |
( |
| ) |
const |
- Returns
- true if this service is closed
◆ isStopping()
bool activemq::util::ServiceSupport::isStopping |
( |
| ) |
const |
- Returns
- true if this service is in the process of closing
◆ operator=()
◆ removeServiceListener()
void activemq::util::ServiceSupport::removeServiceListener |
( |
ServiceListener * | llistener | ) |
|
Removes the given listener to this Service's list of listeners, call retains ownership of the pointer.
◆ start()
void activemq::util::ServiceSupport::start |
( |
| ) |
|
|
virtual |
◆ stop()
void activemq::util::ServiceSupport::stop |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following file: