Interface GrpcCleanupRule.Resource

    • Method Detail

      • cleanUp

        void cleanUp()
      • forceCleanUp

        void forceCleanUp()
        Error already happened, try the best to clean up. Never throws.
      • awaitReleased

        boolean awaitReleased​(long duration,
                              java.util.concurrent.TimeUnit timeUnit)
                       throws java.lang.InterruptedException
        Returns true if the resource is released in time.
        Throws:
        java.lang.InterruptedException