Package io.grpc.alts.internal
Class AsyncSemaphore
- java.lang.Object
-
- io.grpc.alts.internal.AsyncSemaphore
-
final class AsyncSemaphore extends java.lang.Object
Provides a semaphore primitive, without blocking waiting on permits.
-
-
Constructor Summary
Constructors Constructor Description AsyncSemaphore(int permits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.channel.ChannelFuture
acquire(io.netty.channel.ChannelHandlerContext ctx)
void
release()
-