Interface ClientHandshake

All Known Implementing Classes:
BaseClientHandshake, ServiceClientHandshake, SubscriberHandshake

public interface ClientHandshake
Encapsulates client-side transport handshake logic.
Author:
damonkohler@google.com (Damon Kohler)
  • Method Details

    • handshake

      boolean handshake(ConnectionHeader incommingConnectionHeader)
      Parameters:
      incommingConnectionHeader - the ConnectionHeader sent by the server
      Returns:
      true if the handshake is successful, false otherwise
    • getOutgoingConnectionHeader

      ConnectionHeader getOutgoingConnectionHeader()
      Returns:
      the outgoing ConnectionHeader
    • getErrorMessage

      String getErrorMessage()
      Returns:
      the error String returned by the server if an error occurs, null otherwise