Lifecycle
- class LifecycleState[source]
Bases:
objectLifecycle 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:
objectLifecycle service for the Hazelcast client. Allows to determine state of the client and add or remove lifecycle listeners.
- is_running() bool[source]
Checks whether or not the instance is running.
- Returns:
Trueif the client is active and running,Falseotherwise.