Daraja HTTP Framework 3.2.1-SNAPSHOT
HTTP server framework for Object Pascal
Loading...
Searching...
No Matches
ILifeCycle Interface Reference

Interface for components with a lifecycle (start/stop capabilities). More...

Inheritance diagram for ILifeCycle:
IConnector IHandler TdjLifeCycle TdjAbstractConnector IHandlerContainer TdjAbstractHandler TdjAbstractConnector TdjAbstractHandler TdjGenericHolder TdjHTTPConnector TdjServerBase TdjWebComponentHandler TdjHTTPConnector TdjWebComponentHandler TdjWebComponentHolder TdjWebFilterHolder TdjServer TdjWebComponentHolders TdjWebFilterHolders

Public Member Functions

boolean IsStarted ()
boolean IsStopped ()
 Start ()
 Starts the component.
 Stop ()
 Stops the component.

Detailed Description

Interface for components with a lifecycle (start/stop capabilities).

Member Function Documentation

◆ IsStarted()

boolean ILifeCycle::IsStarted ( )
Returns
True if component is started

Implemented in TdjLifeCycle.

Referenced by TdjServer::ConnectorCount(), and Stop().

◆ IsStopped()

boolean ILifeCycle::IsStopped ( )
Returns
True if component is stopped

Implemented in TdjLifeCycle.

◆ Start()

ILifeCycle::Start ( )

Starts the component.

Implemented in TdjLifeCycle.

References Start().

Referenced by Start().

◆ Stop()

ILifeCycle::Stop ( )

Stops the component.

Note
Unlike Start, a failure in the custom stop code is logged and swallowed rather than re-raised; the component is still marked stopped.

Implemented in TdjLifeCycle.

References IsStarted().

Referenced by TdjServer::ConnectorCount().