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.
        Parameters:
        clazz - A Class defining an interface that the result must implement.
        Returns:
        an object that implements the interface. May be a proxy for the actual implementing object.
        Throws:
        java.lang.ClassCastException - If no object found that implements the interface