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 boolean
awaitReleased(long duration, java.util.concurrent.TimeUnit timeUnit)
Returns true if the resource is released in time.void
cleanUp()
void
forceCleanUp()
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.InterruptedException
Returns true if the resource is released in time.- Throws:
java.lang.InterruptedException
-
-