@Override public void postStop() throws Exception { System.out.println("Stopping " + self()); super.postStop(); }
@Override public void postStop() throws Exception { System.out.println("Stopping " + self()); super.postStop(); }
@Override public void postStop() throws Exception { log.info("Shutting down"); super.postStop(); } }
@Override public void postStop() throws Exception { storage.close(); super.postStop(); }
@Override public void postStop() throws Exception { System.out.println("> postStop" + self()); super.postStop(); }
@Override public void postStop() throws Exception { super.postStop(); // IMPORTANT: This only works if we don't use a restarting supervisor strategy. Otherwise // we would complete the future and let the actor system restart the actor with a completed // future. // Complete the termination future so that others know that we've stopped. terminationFuture.complete(null); }
@Override public void postStop() throws Exception { System.out.println("Stopping " + self()); super.postStop(); }
@Override public void postStop() throws Exception { super.postStop(); try { tracker.removeWorker(id); }catch(Exception e) { log.info("Tracker already shut down"); } log.info("Post stop on worker actor"); cluster.unsubscribe(getSelf()); }
@Override public void postStop() throws Exception { super.postStop(); log.info("Post stop on master"); if(clearStateWorkers != null) clearStateWorkers.cancel(); if(forceNextPhase != null) forceNextPhase.cancel(); }
@Override public void postStop() throws Exception { super.postStop(); log.info("Post stop on model saver"); cluster.unsubscribe(getSelf()); }
@Override public void postStop() throws Exception { mainThreadValidator.enterMainThread(); try { CompletableFuture<Void> postStopFuture; try { postStopFuture = rpcEndpoint.postStop(); } catch (Throwable throwable) { postStopFuture = FutureUtils.completedExceptionally(throwable); } super.postStop(); // IMPORTANT: This only works if we don't use a restarting supervisor strategy. Otherwise // we would complete the future and let the actor system restart the actor with a completed // future. // Complete the termination future so that others know that we've stopped. postStopFuture.whenComplete( (Void value, Throwable throwable) -> { if (throwable != null) { terminationFuture.completeExceptionally(throwable); } else { terminationFuture.complete(null); } }); } finally { mainThreadValidator.exitMainThread(); } }
@Override public void postStop() throws Exception { mainThreadValidator.enterMainThread(); try { CompletableFuture<Void> postStopFuture; try { postStopFuture = rpcEndpoint.postStop(); } catch (Throwable throwable) { postStopFuture = FutureUtils.completedExceptionally(throwable); } super.postStop(); // IMPORTANT: This only works if we don't use a restarting supervisor strategy. Otherwise // we would complete the future and let the actor system restart the actor with a completed // future. // Complete the termination future so that others know that we've stopped. postStopFuture.whenComplete( (Void value, Throwable throwable) -> { if (throwable != null) { terminationFuture.completeExceptionally(throwable); } else { terminationFuture.complete(null); } }); } finally { mainThreadValidator.exitMainThread(); } }
@Override public void postStop() throws Exception { mainThreadValidator.enterMainThread(); try { CompletableFuture<Void> postStopFuture; try { postStopFuture = rpcEndpoint.postStop(); } catch (Throwable throwable) { postStopFuture = FutureUtils.completedExceptionally(throwable); } super.postStop(); // IMPORTANT: This only works if we don't use a restarting supervisor strategy. Otherwise // we would complete the future and let the actor system restart the actor with a completed // future. // Complete the termination future so that others know that we've stopped. postStopFuture.whenComplete( (Void value, Throwable throwable) -> { if (throwable != null) { terminationFuture.completeExceptionally(throwable); } else { terminationFuture.complete(null); } }); } finally { mainThreadValidator.exitMainThread(); } }
@Override public void postStop() { try { onStopObserving(new StopObserving(), self(), null); getContext().stop(self()); } catch (Exception exception) { if(logger.isInfoEnabled()) { logger.info("Exception during Call postStop while trying to remove observers: "+exception); } } super.postStop(); } }
@Override public void postStop() { try { onStopObserving(new StopObserving(), self(), null); getContext().stop(self()); } catch (Exception exception) { if(logger.isInfoEnabled()) { logger.info("Exception during Call postStop while trying to remove observers: "+exception); } } super.postStop(); } }
@Override public void postStop() { try { onStopObserving(new StopObserving(), self(), null); getContext().stop(self()); } catch (Exception exception) { if(logger.isInfoEnabled()) { logger.info("Exception during Call postStop while trying to remove observers: "+exception); } } super.postStop(); } }