Returns an object that delegates all defined ExecutorService methods to the given executor, but not any
other methods that might otherwise be accessible using
casts. This provides a way to safely "freeze" configuration and
disallow tuning of a given concrete implementation.
executor | the underlying implementation |
ExecutorService instance
NullPointerException | if executor null |
Diagram: Executors