public boolean isInfoEnabled() { return log.isInfoEnabled(); }
public boolean isInfoEnabled() { return log.isInfoEnabled(); }
@Override public boolean isFatalEnabled() { return logger.isInfoEnabled(); }
@Override public boolean isWarnEnabled() { return logger.isInfoEnabled(); }
@Override public boolean isErrorEnabled() { return logger.isInfoEnabled(); }
@Override public boolean isInfoEnabled() { return logger.isInfoEnabled(); }
public EventuateSTOMPClient(Vertx vertx, EventuateCredentials eventuateCredentials, URI uri) { this.vertx = vertx; this.context = VertxUtil.getContext(vertx); this.eventuateCredentials = eventuateCredentials; this.host = uri.getHost(); this.port = uri.getPort(); this.useSsl = uri.getScheme().startsWith("stomp+ssl"); if (logger.isInfoEnabled()) logger.debug("STOMP connection: " + Arrays.asList(host, port, useSsl)); }
public EventuateSTOMPClient(Vertx vertx, EventuateCredentials eventuateCredentials, URI uri) { this.vertx = vertx; this.context = VertxUtil.getContext(vertx); this.eventuateCredentials = eventuateCredentials; this.host = uri.getHost(); this.port = uri.getPort(); this.useSsl = uri.getScheme().startsWith("stomp+ssl"); if (logger.isInfoEnabled()) logger.debug("STOMP connection: " + Arrays.asList(host, port, useSsl)); }
default void logInfo(Supplier<String> message) { if (log().isInfoEnabled()) { log().info(message.get()); } } }
private void doSubscribe(Subscription sub) { if (logger.isInfoEnabled()) logger.debug("subscribing ... " + sub.subscriberId); Map<String, String> headers = new HashMap<>(); headers.put(Frame.ID, sub.uniqueId); String destination = makeDestinationHeader(sub); state.connection.subscribe(destination, headers, frame -> frameHandler(frame, sub), rh -> { if (logger.isInfoEnabled()) logger.debug("Subscribed: " + sub.subscriberId); sub.noteSubscribed(); }); }
private void doSubscribe(Subscription sub) { if (logger.isInfoEnabled()) logger.debug("subscribing ... " + sub.subscriberId); Map<String, String> headers = new HashMap<>(); headers.put(Frame.ID, sub.uniqueId); String destination = makeDestinationHeader(sub); state.connection.subscribe(destination, headers, frame -> frameHandler(frame, sub), rh -> { if (logger.isInfoEnabled()) logger.debug("Subscribed: " + sub.subscriberId); sub.noteSubscribed(); }); }
@Override public void fatal(String msg, Object... args) { if (!logger.isInfoEnabled()) { return; } withComputedText(msg, args, logger::fatal); }
@Override public void warn(String msg, Object... args) { if (!logger.isInfoEnabled()) { return; } withComputedText(msg, args, logger::warn); }
@Override public void info(String msg, Object... args) { if (!logger.isInfoEnabled()) { return; } withComputedText(msg, args, logger::info); }
@Override public void error(String format, Object... args) { if (!logger.isInfoEnabled()) { return; } withComputedText(format, args, logger::error); }
addProject(name); rh.reply(true); if (log.isInfoEnabled()) { log.info("Registered project {" + name + "}");