@Override public void onError(Objective objective, ObjectiveError error) { log.warn("Flow objective onError {}. Reason = {}", objective, error); if (!failed.getAndSet(true)) { dequeue(deviceId, objective, error); if (originalContext != null) { originalContext.onError(objective, error); } } } }
@Override public void onSuccess(Objective objective) { log.trace("Flow objective onSuccess {}", objective); if (!failed.get()) { dequeue(deviceId, objective, null); if (originalContext != null) { originalContext.onSuccess(objective); } } } @Override
@Override public void onError(FlowRuleOperations ops) { objective.context() .ifPresent(context -> context.onError(objective, ObjectiveError.FLOWINSTALLATIONFAILED)); } }));
@Override public void onSuccess(FlowRuleOperations ops) { objective.context().ifPresent(context -> context.onSuccess(objective)); }
private void fail(Objective obj, ObjectiveError error) { obj.context().ifPresent(context -> context.onError(obj, error)); }
private void pass(Objective obj) { obj.context().ifPresent(context -> context.onSuccess(obj)); }
private void fail(Objective obj, ObjectiveError error) { obj.context().ifPresent(context -> context.onError(obj, error)); }
private void pass(Objective obj) { obj.context().ifPresent(context -> context.onSuccess(obj)); }
private void fail(Objective obj, ObjectiveError error) { obj.context().ifPresent(context -> context.onError(obj, error)); } }
protected static void pass(Objective obj) { obj.context().ifPresent(context -> context.onSuccess(obj)); }
private void fail(Objective obj, ObjectiveError error) { obj.context().ifPresent(context -> context.onError(obj, error)); }
private void pass(Objective obj) { obj.context().ifPresent(context -> context.onSuccess(obj)); } }
private void fail(Objective obj, ObjectiveError error) { obj.context().ifPresent(context -> context.onError(obj, error)); }
private void pass(Objective obj) { obj.context().ifPresent(context -> context.onSuccess(obj)); }
private void fail(Objective obj, ObjectiveError error) { obj.context().ifPresent(context -> context.onError(obj, error)); }
private void pass(Objective obj) { obj.context().ifPresent(context -> context.onSuccess(obj)); }
private void fail(Objective obj, ObjectiveError error) { obj.context().ifPresent(context -> context.onError(obj, error)); }
private void pass(Objective obj) { obj.context().ifPresent(context -> context.onSuccess(obj)); }
protected void fail(Objective obj, ObjectiveError error) { obj.context().ifPresent(context -> context.onError(obj, error)); }
private void pass(Objective obj) { obj.context().ifPresent(context -> context.onSuccess(obj)); }