private void init ( ) { CompletableFuture . allOf ( managementRegistry . register ( generateClusterTierManagerBinding ( ) ) , // PoolBinding.ALL_SHARED is a marker so that we can send events not specifically related to 1 pool // this object is ignored from the stats and descriptors managementRegistry . register ( PoolBinding . ALL_SHARED ) ) . thenRun ( managementRegistry :: refresh ) ; }
the goal of the following code is to send the management metadata from the entity into the monitoring tre AFTER the entity creation