/** * An executor which delegates to the given direct executor, but implements the blocking executor interface. * Since direct executors always execute tasks in the current thread, no blocking is possible; therefore the * methods of BlockingExecutors always succeed or fail instantly. * * @param delegate the delegate direct executor * @return the blocking executor */ @Deprecated public static BlockingExecutor directBlockingExecutor(final DirectExecutor delegate) { return new DelegatingDirectBlockingExecutor(delegate); }
/** * An executor which delegates to the given direct executor, but implements the blocking executor interface. * Since direct executors always execute tasks in the current thread, no blocking is possible; therefore the * methods of BlockingExecutors always succeed or fail instantly. * * @param delegate the delegate direct executor * @return the blocking executor */ @Deprecated public static BlockingExecutor directBlockingExecutor(final DirectExecutor delegate) { return new DelegatingDirectBlockingExecutor(delegate); }
/** * An executor which delegates to the given direct executor, but implements the blocking executor interface. * Since direct executors always execute tasks in the current thread, no blocking is possible; therefore the * methods of BlockingExecutors always succeed or fail instantly. * * @param delegate the delegate direct executor * @return the blocking executor */ @Deprecated public static BlockingExecutor directBlockingExecutor(final DirectExecutor delegate) { return new DelegatingDirectBlockingExecutor(delegate); }