Hazelcast C++ Client
Hazelcast C++ Client Library
Loading...
Searching...
No Matches
hazelcast::client::lifecycle_event Class Reference

Event to be fired when lifecycle states are changed. More...

#include <lifecycle_event.h>

Public Types

enum  lifecycle_state {
  STARTING , STARTED , SHUTTING_DOWN , SHUTDOWN ,
  CLIENT_CONNECTED , CLIENT_DISCONNECTED
}
 State enum. More...

Public Member Functions

 lifecycle_event (lifecycle_state state)
 Constructor.
lifecycle_state get_state () const

Detailed Description

Event to be fired when lifecycle states are changed.

 enum LifeCycleState {
     STARTING,
     STARTED,
     SHUTTING_DOWN,
     SHUTDOWN,
     CLIENT_CONNECTED,
     CLIENT_DISCONNECTED
 };
See also
HazelcastInstance::getLifecycleService
LifecycleService::addlifecycle_listener

Definition at line 37 of file lifecycle_event.h.

Member Enumeration Documentation

◆ lifecycle_state

State enum.

Definition at line 43 of file lifecycle_event.h.

44 {
45 STARTING,
46 STARTED,
47 SHUTTING_DOWN,
48 SHUTDOWN,
49 CLIENT_CONNECTED,
50 CLIENT_DISCONNECTED
51 };

Constructor & Destructor Documentation

◆ lifecycle_event()

hazelcast::client::lifecycle_event::lifecycle_event ( lifecycle_state state)

Constructor.

Definition at line 80 of file spi.cpp.

81 : state_(state)
82{}

Member Function Documentation

◆ get_state()

lifecycle_event::lifecycle_state hazelcast::client::lifecycle_event::get_state ( ) const
Returns
State;

Definition at line 85 of file spi.cpp.

86{
87 return state_;
88}

The documentation for this class was generated from the following files: