@Override public void postStop() { super.postStop(); if (shutdownCancellable != null) { shutdownCancellable.cancel(); } }
@Override public void onRecoveryFailure(final Throwable cause, final Option<Object> event) { super.onRecoveryFailure(cause, event); log.error("Recovery Failure for Thing with ID {} and cause {}", thingId, cause.getMessage()); }
/** * @param cause exception * @param event the event to be persisted * @param seqNr the currents sequence number */ @Override public void onPersistFailure(Throwable cause, Object event, long seqNr) { sender().tell("Persist of " + event.getClass().getSimpleName() + " failed in" + persistenceId() + "caused by: " + cause.getLocalizedMessage(), ActorRef.noSender()); super.onPersistFailure(cause, event, seqNr); }
/** * @param cause exception * @param event the event to be persisted * @param seqNr the currents sequence number */ @Override public void onPersistRejected(Throwable cause, Object event, long seqNr) { sender().tell("Persist of " + event.getClass().getSimpleName() + " rejected in" + persistenceId() + "caused by: " + cause.getLocalizedMessage(), ActorRef.noSender()); super.onPersistRejected(cause, event, seqNr); }
@Override public void postStop() { log.info("stopped connection <{}>", connectionId); cancelStopSelfIfDeletedTrigger(); super.postStop(); }
@Override public void postStop() { super.postStop(); invokeAfterSnapshotRunnable = null; if (activityChecker != null) { activityChecker.cancel(); } if (snapshotter != null) { snapshotter.cancel(); } }
@Override public void postStop() { super.postStop(); thingSnapshotter.postStop(); if (activityChecker != null) { activityChecker.cancel(); } }
@Override public void postStop() { log.info("stopped connection <{}>", connectionId); cancelStopSelfIfDeletedTrigger(); super.postStop(); }
@Override public void postStop() { super.postStop(); invokeAfterSnapshotRunnable = null; if (activityChecker != null) { activityChecker.cancel(); } if (snapshotter != null) { snapshotter.cancel(); } }
@Override public void postStop() { log.debug("Stopping PersistenceActor for Thing with ID - {}", thingId); super.postStop(); thingSnapshotter.postStop(); if (activityChecker != null) { activityChecker.cancel(); } }