@Local public void pingServices() { getServices().forEach( serv -> { serv.ping().then( r -> { timeoutMap.put(serv,System.currentTimeMillis()); }); }); getServices().forEach( serv -> { Long tim = timeoutMap.get(serv); if (tim != null && System.currentTimeMillis() - tim > getServicePingTimeout() * 2) { Log.Info(this, "service timeout, closing " + serv); handleServiceDiscon(serv); if (serv.isPublished()) serv.close(); } }); }
@Local public void pingServices() { getServices().forEach( serv -> { serv.ping().then( r -> { timeoutMap.put(serv,System.currentTimeMillis()); }); }); getServices().forEach( serv -> { Long tim = timeoutMap.get(serv); if (tim != null && System.currentTimeMillis() - tim > getServicePingTimeout() * 2) { Log.Info(this, "service timeout, closing " + serv); handleServiceDiscon(serv); if (serv.isPublished()) serv.close(); } }); }
if ( publishedActor != null && ! publishedActor.isStopped() && publishedActor.isPublished() ) { System.out.println("unpublishing " + zzLastLiveActorId + " " + publishedActor); connectionRegistry.unpublishActor(publishedActor);
if ( publishedActor != null && ! publishedActor.isStopped() && publishedActor.isPublished() ) { System.out.println("unpublishing " + zzLastLiveActorId + " " + publishedActor); connectionRegistry.unpublishActor(publishedActor);
boolean published = ud.lastRoutedService.isPublished(); boolean stopped = ud.lastRoutedService.isStopped(); if (!stopped) {
boolean published = ud.lastRoutedService.isPublished(); boolean stopped = ud.lastRoutedService.isStopped(); if (!stopped) {