public LettuceCdiExtension() { LOGGER.info("Activating CDI extension for lettuce."); }
@Override public void execute(Runnable command) { if (command == null) { throw new NullPointerException("command"); } if (!RUNNING.get()) { RUNNING.set(true); try { command.run(); } catch (Throwable cause) { logger.info("Throwable caught while executing Runnable {}", command, cause); } finally { Queue<Runnable> delayedRunnables = DELAYED_RUNNABLES.get(); Runnable runnable; while ((runnable = delayedRunnables.poll()) != null) { try { runnable.run(); } catch (Throwable cause) { logger.info("Throwable caught while executing Runnable {}", runnable, cause); } } RUNNING.set(false); } } else { DELAYED_RUNNABLES.get().add(command); } }
private void register(AfterBeanDiscovery afterBeanDiscovery, Set<Annotation> qualifiers, Bean<?> bean) { LOGGER.info(String.format("Registering bean '%s' with qualifiers %s.", bean.getBeanClass().getName(), qualifiers)); afterBeanDiscovery.addBean(bean); } }
pending = t; } else { logger.info("Throwable being suppressed because Throwable {} is already pending", pending, t);
public void retain() { if (counter.incrementAndGet() == 1) { if (instanceCounter.getAndIncrement() > 0) { InternalLogger instance = InternalLoggerFactory.getInstance(getClass()); instance.info("Initialized PauseDetectorWrapper more than once."); } pauseDetector = new SimplePauseDetector(TimeUnit.MILLISECONDS.toNanos(10), TimeUnit.MILLISECONDS.toNanos(10), 3); Runtime.getRuntime().addShutdownHook(new Thread("ShutdownHook for SimplePauseDetector") { @Override public void run() { if (pauseDetector != null) { pauseDetector.shutdown(); } } }); } }
private void releaseAndCompleteAll(ChannelFuture future) { decrementReadableBytes(readableBytes); Throwable pending = null; for (;;) { Object entry = bufAndListenerPairs.poll(); if (entry == null) { break; } try { if (entry instanceof ByteBuf) { safeRelease(entry); } else { ((ChannelFutureListener) entry).operationComplete(future); } } catch (Throwable t) { if (pending == null) { pending = t; } else { logger.info("Throwable being suppressed because Throwable {} is already pending", pending, t); } } } if (pending != null) { throw new IllegalStateException(pending); } }
@Override public void execute(Runnable command) { if (command == null) { throw new NullPointerException("command"); } if (!RUNNING.get()) { RUNNING.set(true); try { command.run(); } catch (Throwable cause) { logger.info("Throwable caught while executing Runnable {}", command, cause); } finally { Queue<Runnable> delayedRunnables = DELAYED_RUNNABLES.get(); Runnable runnable; while ((runnable = delayedRunnables.poll()) != null) { try { runnable.run(); } catch (Throwable cause) { logger.info("Throwable caught while executing Runnable {}", runnable, cause); } } RUNNING.set(false); } } else { DELAYED_RUNNABLES.get().add(command); } }
pending = t; } else { logger.info("Throwable being suppressed because Throwable {} is already pending", pending, t);
@Override public boolean prepareUpgradeResponse(ChannelHandlerContext ctx, FullHttpRequest upgradeRequest, HttpHeaders headers) { try { // Decode the HTTP2-Settings header and set the settings on the handler to make // sure everything is fine with the request. List<String> upgradeHeaders = upgradeRequest.headers().getAll(HTTP_UPGRADE_SETTINGS_HEADER); if (upgradeHeaders.isEmpty() || upgradeHeaders.size() > 1) { throw new IllegalArgumentException("There must be 1 and only 1 " + HTTP_UPGRADE_SETTINGS_HEADER + " header."); } settings = decodeSettingsHeader(ctx, upgradeHeaders.get(0)); // Everything looks good. return true; } catch (Throwable cause) { logger.info("Error during upgrade to HTTP/2", cause); return false; } }
private void releaseAndCompleteAll(ChannelFuture future) { decrementReadableBytes(readableBytes); Throwable pending = null; for (;;) { Object entry = bufAndListenerPairs.poll(); if (entry == null) { break; } try { if (entry instanceof ByteBuf) { safeRelease(entry); } else { ((ChannelFutureListener) entry).operationComplete(future); } } catch (Throwable t) { if (pending == null) { pending = t; } else { logger.info("Throwable being suppressed because Throwable {} is already pending", pending, t); } } } if (pending != null) { throw new IllegalStateException(pending); } }
logger.info("row type {} not supported. ignoring line: {}", SORTLIST_ROW_LABEL, line);
logger.info("row type {} not supported. ignoring line: {}", SORTLIST_ROW_LABEL, line);
if (tmpFile != null && tmpFile.isFile() && tmpFile.canRead() && !NoexecVolumeDetector.canExecuteExecutable(tmpFile)) { logger.info("{} exists but cannot be executed even when execute permissions set; " + "check volume for \"noexec\" flag; use -Dio.netty.native.workdir=[path] " + "to set native working directory separately.",
@Override public void execute(Runnable command) { if (command == null) { throw new NullPointerException("command"); } if (!RUNNING.get()) { RUNNING.set(true); try { command.run(); } catch (Throwable cause) { logger.info("Throwable caught while executing Runnable {}", command, cause); } finally { Queue<Runnable> delayedRunnables = DELAYED_RUNNABLES.get(); Runnable runnable; while ((runnable = delayedRunnables.poll()) != null) { try { runnable.run(); } catch (Throwable cause) { logger.info("Throwable caught while executing Runnable {}", runnable, cause); } } RUNNING.set(false); } } else { DELAYED_RUNNABLES.get().add(command); } }
pending = t; } else { logger.info("Throwable being suppressed because Throwable {} is already pending", pending, t);
private void releaseAndCompleteAll(ChannelFuture future) { decrementReadableBytes(readableBytes); Throwable pending = null; for (;;) { Object entry = bufAndListenerPairs.poll(); if (entry == null) { break; } try { if (entry instanceof ByteBuf) { safeRelease(entry); } else { ((ChannelFutureListener) entry).operationComplete(future); } } catch (Throwable t) { if (pending == null) { pending = t; } else { logger.info("Throwable being suppressed because Throwable {} is already pending", pending, t); } } } if (pending != null) { throw new IllegalStateException(pending); } }
logger.info("Migrated " + nChannels + " channel(s) to the new Selector.");
logger.info("Migrated " + nChannels + " channel(s) to the new Selector.");
if (stream == null) { if (streamCreatedAfterGoAwaySent(streamId)) { logger.info("{} ignoring {} frame for stream {}. Stream sent after GOAWAY sent", ctx.channel(), frameName, streamId); return true; logger.info("{} ignoring {} frame for stream {} {}", ctx.channel(), frameName, stream.isResetSent() ? "RST_STREAM sent." : ("Stream created after GOAWAY sent. Last known stream by peer " +
logger.info("{} Closing channel because endpoint is already closed", logPrefix()); channel.close(); return;