public interface LifecycleService
LifecycleEvent
's
on HazelcastInstance.Modifier and Type | Method and Description |
---|---|
String |
addLifecycleListener(LifecycleListener lifecycleListener)
Add a listener object to listen for lifecycle events.
|
boolean |
isRunning()
checks whether or not the instance is running
|
boolean |
removeLifecycleListener(String registrationId)
Removes a lifecycle listener
|
void |
shutdown()
gracefully shutdowns HazelcastInstance.
|
void |
terminate()
terminate HazelcastInstance ungracefully.
|
boolean isRunning()
void shutdown()
terminate()
,
it waits for partition operations to be completed.void terminate()
String addLifecycleListener(LifecycleListener lifecycleListener)
lifecycleListener
- the listener objectboolean removeLifecycleListener(String registrationId)
registrationId
- The listener id returned by addLifecycleListener(LifecycleListener)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.