Is there a way to execute a code fragment on hazelcast (version 3.4) node after node has started?
The idea is : once one of hazelcast nodes are started to create map (not waiting for .getMap to be executed on client side) and popualte with data from database, so that when client requests data, map is already populated.
This can be solved by defining custom service in hazelcast.xml. The service constructor is invoked on nodes start up and from there it's possible to request and populate hazelcast map. But the invocation of getMap should be done in new Thread