/** * Wrap a direct executor with an {@code DirectExecutorService} instance which supports all the features of {@code ExecutorService} * except for shutting down the executor. * * @param target the target executor * @return the executor service */ public static DirectExecutorService protectedDirectExecutorService(final DirectExecutor target) { return new DelegatingDirectExecutorService(target); }
/** * Wrap a direct executor with an {@code DirectExecutorService} instance which supports all the features of {@code ExecutorService} * except for shutting down the executor. * * @param target the target executor * @return the executor service */ public static DirectExecutorService protectedDirectExecutorService(final DirectExecutor target) { return new DelegatingDirectExecutorService(target); }
/** * Wrap a direct executor with an {@code DirectExecutorService} instance which supports all the features of {@code ExecutorService} * except for shutting down the executor. * * @param target the target executor * @return the executor service */ public static DirectExecutorService protectedDirectExecutorService(final DirectExecutor target) { return new DelegatingDirectExecutorService(target); }