dispatch.changed( new ResourceNotification( "DirB/DirNew/FileNew",
@Override public void onMessage(Message<ResourceNotification> msg) { LOGGER.info("Received ResourceNotification from HazelCast: " + msg.getMessageObject()); super.changed(msg.getMessageObject()); } }
@Override public void changed(ResourceNotification event) { ITopic<ResourceNotification> topic = topic(); if (topic != null) { topic.publish(event); } else { LOGGER.warning( "Failed to publish resource notification, cluster not initialized (yet)."); super.changed(event); } }