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 shuts down HazelcastInstance.
|
void |
terminate()
Terminate HazelcastInstance ungracefully.
|
boolean isRunning()
true
, if instance is active and running, false
otherwisevoid shutdown()
terminate()
in that it waits for partition operations to complete.void terminate()
shutdown()
for graceful shutdown.String addLifecycleListener(LifecycleListener lifecycleListener)
lifecycleListener
- the listener objectboolean removeLifecycleListener(String registrationId)
registrationId
- the listener ID returned by addLifecycleListener(LifecycleListener)
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.