Package io.grpc.testing
Interface GrpcCleanupRule.Resource
- All Known Implementing Classes:
GrpcCleanupRule.ManagedChannelResource,GrpcCleanupRule.ServerResource
- Enclosing class:
GrpcCleanupRule
static interface GrpcCleanupRule.Resource
-
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitReleased(long duration, TimeUnit timeUnit) Returns true if the resource is released in time.voidcleanUp()voidError 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
Returns true if the resource is released in time.- Throws:
InterruptedException
-