Package io.grpc.testing
Interface GrpcCleanupRule.Resource
-
- All Known Implementing Classes:
GrpcCleanupRule.ManagedChannelResource,GrpcCleanupRule.ServerResource
- Enclosing class:
- GrpcCleanupRule
static interface GrpcCleanupRule.Resource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanawaitReleased(long duration, java.util.concurrent.TimeUnit timeUnit)Returns true if the resource is released in time.voidcleanUp()voidforceCleanUp()Error already happened, try the best to clean up.
-
-
-
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.InterruptedExceptionReturns true if the resource is released in time.- Throws:
java.lang.InterruptedException
-
-