Class QuicEndpoint

java.lang.Object
io.vertx.reactivex.core.net.QuicEndpoint
All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate, Measured
Direct Known Subclasses:
QuicClient, QuicServer

public class QuicEndpoint extends Object implements io.vertx.lang.rx.RxDelegate, Measured
Represents a Quic endpoints, whose primary function is to bind a UDP socket on a given or random port.

NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

  • Field Details

    • __TYPE_ARG

      public static final io.vertx.lang.rx.TypeArg<QuicEndpoint> __TYPE_ARG
  • Constructor Details

    • QuicEndpoint

      public QuicEndpoint(QuicEndpoint delegate)
    • QuicEndpoint

      public QuicEndpoint(Object delegate)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getDelegate

      public QuicEndpoint getDelegate()
      Specified by:
      getDelegate in interface Measured
      Specified by:
      getDelegate in interface io.vertx.lang.rx.RxDelegate
    • isMetricsEnabled

      public boolean isMetricsEnabled()
      Whether the metrics are enabled for this measured object
      Specified by:
      isMetricsEnabled in interface Measured
      Returns:
      true if metrics are enabled
    • bind

      public Future<SocketAddress> bind(SocketAddress address)
      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
    • rxBind

      public Single<SocketAddress> rxBind(SocketAddress address)
      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

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

      public Completable rxClose()
      Close the endpoint and release all associated resources.
      Returns:
      a future completed with the close operation result
    • shutdown

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

      public Completable rxShutdown()
      Shutdown the endpoint with a 30 seconds grace period (shutdown(30, TimeUnit.SECONDS)).
      Returns:
      a future completed when shutdown has completed
    • shutdown

      public 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
    • rxShutdown

      public Completable rxShutdown(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
    • newInstance

      public static QuicEndpoint newInstance(QuicEndpoint arg)