hazelcast shutdown(); hook

230 views
Skip to first unread message

bitsof...@gmail.com

unread,
Nov 25, 2015, 11:52:05 AM11/25/15
to Hazelcast
When something calls hazelcastInstance.shutdown()... how can my code be notified this event has occurred?


bitsof...@gmail.com

unread,
Nov 25, 2015, 11:52:42 AM11/25/15
to Hazelcast
To clarify, I am not talking about the hazelcast shutdownhook feature, but some sort of listener capability when hazelcastInstance.shutdown() method is invoked or is completed.

Emin Demirci

unread,
Nov 25, 2015, 12:07:47 PM11/25/15
to haze...@googlegroups.com
Hi,

You can use hazelcast lifecycle listeners to achieve that.


LifecycleService can be obtained from hazelcastInsantce.getLifecycleService() and you can add your listener via lifecycleservice.addLifecycleListener() method.

Regards,

----

Emin Demirci
Software Engineer
Mahir İz Cad. No:35, Altunizade, İstanbul
Sent with Sparrow

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/807eda87-8469-4f32-8634-949db515b7ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages