Class WebUserConnection

All Implemented Interfaces:
ConnectionThrottle, UserClientConnection
Direct Known Subclasses:
WebUserConnection.AnonWebUserConnection

public class WebUserConnection extends BaseWebUserConnection
WebUserConnectionWrapper which represents the UserClientConnection between WebServer and Foreman, for the WebUser submitting the query. It provides access to the UserSession executing the query. There is no actual physical channel corresponding to this connection wrapper. It returns a close future which do have an EventExecutor out of BitServer EventLoopGroup. Close future is set only when the WebSessionResources are closed.
  • Field Details

  • Method Details

    • sendData

      public void sendData(RpcOutcomeListener<GeneralRPCProtos.Ack> listener, QueryDataPackage data)
      Description copied from interface: UserClientConnection
      Send query data to client. Outcome is returned through listener.
      Parameters:
      listener - The listener
      data - The data to be sent
    • cleanupSession

      public void cleanupSession()
      For authenticated WebUser no cleanup of WebSessionResources is done since it's re-used for all the queries until lifetime of the web session.
    • getAutoLimitRowCount

      public int getAutoLimitRowCount()
      Gets the max size of records to be sent back by the query
      Returns:
      Max number of records to be sent back to WebServer