Interface QuicEndpoint

All Superinterfaces:
Measured
All Known Subinterfaces:
QuicClient, QuicServer

public interface QuicEndpoint extends Measured
Represents a Quic endpoints, whose primary function is to bind a UDP socket on a given or random port.
Author:
Julien Viet
  • Method Details

    • bind

      Binds a UDP socket at the given address.

      >When the endpoint is successfully bound, ainvalid input: '<'/p

      Parameters:
      address - the bind address
      Returns:
      a future signaling the success or failure of the bind operation, the result is socket address this endpoint is bound to
    • close

      default Future<Void> close()
      Close the endpoint and release all associated resources.
      Returns:
      a future completed with the close operation result
    • shutdown

      default Future<Void> shutdown()
      Shutdown the endpoint with a 30 seconds grace period (shutdown(30, TimeUnit.SECONDS)).
      Returns:
      a future completed when shutdown has completed
    • shutdown

      Future<Void> shutdown(Duration timeout)
      Initiate the endpoint shutdown sequence.
      Parameters:
      timeout - the amount of time after which all resources are forcibly closed
      Returns:
      a future notified when the client is closed