public boolean register ( ) { Application application = this . applicationFactory . createApplication ( ) ; boolean isRegistrationSuccessful = false ; for ( String adminUrl : this . adminUrls ) { LongAdder attempt = this . attempts . computeIfAbsent ( adminUrl , k -> new LongAdder ( ) ) ; boolean successful = register ( application , adminUrl , attempt . intValue ( ) == 0 ) ; if ( ! successful ) { attempt . increment ( ) ; } else { attempt . reset ( ) ; isRegistrationSuccessful = true ; if ( this . registerOnce ) { break ; } } } return isRegistrationSuccessful ; }
Registers the client application at spring - boot - admin - server .