public RunnableExecutorImpl() { this(new BatchExecutorImpl()); }
@Override public void execute(EventReader toExecute) { Optional<Map> oldContext = Optional.ofNullable(MDC.getCopyOfContextMap()); MDC.setContextMap(contextMap); super.execute(toExecute); contextMap = MDC.getCopyOfContextMap(); oldContext.ifPresent(MDC::setContextMap); }
public RunnableExecutorImpl() { this(new BatchExecutorImpl()); }
/** * Create a new Fiber from this pool. Equivalent to calling {@link #create(BatchExecutor)} * with a {@link SynchronousExecutor} * * @return Fiber instance */ public Fiber create() { return create(new BatchExecutorImpl()); }
/** * Create a new Fiber from this pool. Equivalent to calling {@link #create(BatchExecutor)} * with a {@link SynchronousExecutor} * * @return Fiber instance */ public Fiber create() { return create(new BatchExecutorImpl()); }