public interface ClusterVersionListener
ServiceManagerwhich implement this interface do not have have to register themselves, as their
onClusterVersionChange(Version)method will be invoked automatically. Other listeners have to register themselves with
NodeExtension.registerListener(Object). Upon registration, the listener's
onClusterVersionChange(Version)method will be invoked once with the current value of the cluster version.
void onClusterVersionChange(Version newVersion)
ClusterStateManager#versionhas been updated and while the cluster service lock
ClusterServiceImpl#lockis still locked, as part of the commit phase of the transaction changing the cluster version. Unhandled exceptions from listeners implementation will break the new version commit and a slow implementation will stall the system and may cause a transaction timeout. If new cluster version is
GroupProperty.INIT_CLUSTER_VERSIONis set, the version set by this property will be provided as argument to the listener. If neither are set, running node's codebase version will be used.
newVersion- the new version
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.