org.jtrim2.executor.UnstoppableTaskExecutor Maven / Gradle / Ivy
package org.jtrim2.executor;
/**
* @see TaskExecutors#asUnstoppableExecutor(TaskExecutorService)
*/
final class UnstoppableTaskExecutor extends DelegatedTaskExecutorService {
public UnstoppableTaskExecutor(TaskExecutorService wrappedExecutor) {
super(wrappedExecutor);
}
@Override
public void shutdown() {
throw new UnsupportedOperationException(
"This executor cannot be shutted down.");
}
@Override
public void shutdownAndCancel() {
shutdown();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy