|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.client.LifecycleServiceImpl
public final class LifecycleServiceImpl
| Constructor Summary | |
|---|---|
LifecycleServiceImpl(HazelcastClient client)
|
|
| Method Summary | |
|---|---|
String |
addLifecycleListener(LifecycleListener lifecycleListener)
Add listener object to listen lifecycle events. |
boolean |
isRunning()
whether the instance is running |
boolean |
removeLifecycleListener(String registrationId)
Remove lifecycle listener |
void |
shutdown()
gracefully shutdowns HazelcastInstance. |
void |
terminate()
terminate HazelcastInstance ungracefully. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LifecycleServiceImpl(HazelcastClient client)
| Method Detail |
|---|
public String addLifecycleListener(LifecycleListener lifecycleListener)
LifecycleService
addLifecycleListener in interface LifecycleServicelifecycleListener - Listener object
public boolean removeLifecycleListener(String registrationId)
LifecycleService
removeLifecycleListener in interface LifecycleServiceregistrationId - The listener id returned by LifecycleService.addLifecycleListener(LifecycleListener)
public boolean isRunning()
LifecycleService
isRunning in interface LifecycleServicepublic void shutdown()
LifecycleServiceLifecycleService.terminate(), waits partition operations to be completed.
shutdown in interface LifecycleServicepublic void terminate()
LifecycleService
terminate in interface LifecycleService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||