Interface ClientCallback

All Known Implementing Classes:
MultiEndpointPoolSample

public interface ClientCallback
The general callback interface to be used by a ClientFilter to delegate client Connection's event processing.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onConnectionEstablished(org.glassfish.grizzly.Connection connection)
    The callback operation will be executed once new client-side Connection is established.
    void
    onResponseReceived(org.glassfish.grizzly.Connection connection, String responseMessage)
    The callback operation will be executed once a client Connection receives response from a server.
  • Method Details

    • onConnectionEstablished

      void onConnectionEstablished(org.glassfish.grizzly.Connection connection)
      The callback operation will be executed once new client-side Connection is established.
      Parameters:
      connection - the new Connection
    • onResponseReceived

      void onResponseReceived(org.glassfish.grizzly.Connection connection, String responseMessage)
      The callback operation will be executed once a client Connection receives response from a server.
      Parameters:
      connection - the client-side Connection
      responseMessage - the response