src/main/java/com/mt/access/application/endpoint/EndpointApplicationService.java
/**
     * send app started event with a delay of 60s to wait for registry complete
     */
send app started event with a delay of 60s to wait for registry complete
send app started event with a delay of 60s to wait for registry complete
@EventListener(ApplicationReadyEvent.class)
    protected void reloadProxy() {
        if (reloadOnAppStart) {
            try {
                Thread.sleep(60 * 1000);
            } catch (InterruptedException e) {
                log.error("wait is interrupted due to", e);
            }
            log.debug("sending reload proxy endpoint message");
            CommonDomainRegistry.getEventStreamService().next(appName, false, "started_access", new AppStarted());
        }
    }
@ EventListener ( ApplicationReadyEvent . class ) protected void reloadProxy ( ) { if ( reloadOnAppStart ) { try { Thread . sleep ( 60 * 1000 ) ; } catch ( InterruptedException e ) { log . error ( "wait is interrupted due to" , e ) ; } log . debug ( "sending reload proxy endpoint message" ) ; CommonDomainRegistry . getEventStreamService ( ) . next ( appName , false , "started_access" , new AppStarted ( ) ) ; } }
send app started event with a delay of 60s to wait for registry complete
send app started event with a delay of 60s to wait for registry complete