Interface GrpcCleanupRule.Resource

All Known Implementing Classes:
GrpcCleanupRule.ManagedChannelResource, GrpcCleanupRule.ServerResource
Enclosing class:
GrpcCleanupRule

static interface GrpcCleanupRule.Resource
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    awaitReleased(long duration, TimeUnit timeUnit)
    Returns true if the resource is released in time.
    void
     
    void
    Error already happened, try the best to clean up.
  • Method Details

    • cleanUp

      void cleanUp()
    • forceCleanUp

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

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