question: private void checkPendingCustomMessages ( ) { if ( joiningNodes . isEmpty ( ) && isLocalNodeCoordinator ( ) ) { TcpDiscoveryCustomEventMessage msg ; while ( ( msg = pendingCustomMsgs . poll ( ) ) != null ) { processCustomMessage ( msg ) ; if ( msg . verified ( ) ) msgHist . add ( msg ) ; } } }
target:  Checks and flushes custom event messages if no nodes are attempting to join the grid.