Package google.registry.proxy.handler
Class QuotaHandler.EppQuotaHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
google.registry.proxy.handler.QuotaHandler
google.registry.proxy.handler.QuotaHandler.EppQuotaHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
- Enclosing class:
QuotaHandler
Quota Handler for EPP protocol.
-
Nested Class Summary
Nested classes/interfaces inherited from class google.registry.proxy.handler.QuotaHandler
QuotaHandler.EppQuotaHandler, QuotaHandler.WhoisQuotaHandler
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Field Summary
Fields inherited from class google.registry.proxy.handler.QuotaHandler
metrics, quotaManager, quotaResponse
-
Method Summary
Modifier and TypeMethodDescriptionvoid
channelInactive
(io.netty.channel.ChannelHandlerContext ctx) Returns the leased token (if available) back to the token store upon connection termination.Methods inherited from class google.registry.proxy.handler.QuotaHandler
channelRead
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Method Details
-
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) Returns the leased token (if available) back to the token store upon connection termination.A connection with concurrent quota needs to do this in order to maintain its quota number invariance.
- Specified by:
channelInactive
in interfaceio.netty.channel.ChannelInboundHandler
- Specified by:
channelInactive
in classQuotaHandler
-