Interface ShutdownableExecutorService

    • Method Detail

      • unwrap

        <T extends ExecutorService> T unwrap​(java.lang.Class<T> clazz)
        Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.
        clazz - A Class defining an interface that the result must implement.
        an object that implements the interface. May be a proxy for the actual implementing object.
        java.lang.ClassCastException - If no object found that implements the interface