Class QuotaHandler.WhoisQuotaHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
google.registry.proxy.handler.QuotaHandler
google.registry.proxy.handler.QuotaHandler.WhoisQuotaHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler
Enclosing class:
QuotaHandler

public static class QuotaHandler.WhoisQuotaHandler extends QuotaHandler
Quota Handler for WHOIS 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 Type
    Method
    Description
    void
    channelInactive(io.netty.channel.ChannelHandlerContext ctx)
    Do nothing when connection terminates.

    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)
      Do nothing when connection terminates.

      WHOIS protocol is configured with a QPS type quota, there is no need to return the tokens back to the quota store because the quota store will auto-refill tokens based on the QPS.

      Specified by:
      channelInactive in interface io.netty.channel.ChannelInboundHandler
      Specified by:
      channelInactive in class QuotaHandler