Lifecycle¶
-
class
LifecycleState
[source]¶ Bases:
object
Lifecycle states.
-
STARTING
= 'STARTING'¶ The client is starting.
-
STARTED
= 'STARTED'¶ The client has started.
-
CONNECTED
= 'CONNECTED'¶ The client connected to a member.
-
SHUTTING_DOWN
= 'SHUTTING_DOWN'¶ The client is shutting down.
-
DISCONNECTED
= 'DISCONNECTED'¶ The client disconnected from a member.
-
SHUTDOWN
= 'SHUTDOWN'¶ The client has shutdown.
-
-
class
LifecycleService
(internal_lifecycle_service)[source]¶ Bases:
object
Lifecycle service for the Hazelcast client. Allows to determine state of the client and add or remove lifecycle listeners.
-
is_running
()[source]¶ Checks whether or not the instance is running.
- Returns
True
if the client is active and running,False
otherwise.- Return type
bool
-