Class QuicConnection
java.lang.Object
io.vertx.rxjava3.core.net.QuicConnection
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclose()Close the connection, all associated streams will be closed before.close(QuicConnectionClose payload) Close the connection, all associated streams will be closed before.closeHandler(Handler<Void> handler) Set a handler called when the connection is closed.datagramHandler(Handler<Buffer> handler) Set a handler called with the datagram addressed to this connection.booleaninthashCode()intstatic QuicConnectionOpen a bidirectional stream to the remote endpoint.openStream(boolean bidirectional) Open a stream to the remote endpoint withbidirectional parameterspecifying its directionality.rxClose()Close the connection, all associated streams will be closed before.rxClose(QuicConnectionClose payload) Close the connection, all associated streams will be closed before.Open a bidirectional stream to the remote endpoint.rxOpenStream(boolean bidirectional) Open a stream to the remote endpoint withbidirectional parameterspecifying its directionality.Shutdown with a 30 seconds timeout.rxShutdown(Duration timeout) Initiate a graceful connection shutdown, the connection is taken out of service and closed when all the inflight streams are processed, otherwise after atimeoutthe connection will be closed.rxShutdown(Duration timeout, QuicConnectionClose payload) Initiate a graceful connection shutdown, the connection is taken out of service and closed when all the inflight streams are processed, otherwise after atimeoutthe connection will be closed.rxWriteDatagram(Buffer buffer) Send a datagram.shutdown()Shutdown with a 30 seconds timeout.Initiate a graceful connection shutdown, the connection is taken out of service and closed when all the inflight streams are processed, otherwise after atimeoutthe connection will be closed.shutdown(Duration timeout, QuicConnectionClose payload) Initiate a graceful connection shutdown, the connection is taken out of service and closed when all the inflight streams are processed, otherwise after atimeoutthe connection will be closed.shutdownHandler(Handler<Duration> handler) Set ahandlernotified when the connection is shutdown: the client or server will close the connection within a certain amount of time.streamHandler(Handler<QuicStream> handler) Set a handler processing incoming Quic streams.toString()writeDatagram(Buffer buffer) Send a datagram.
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
QuicConnection
-
QuicConnection
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
streamHandler
Set a handler processing incoming Quic streams.- Parameters:
handler- the handler processing streams- Returns:
- this instance of a connection
-
closeHandler
Set a handler called when the connection is closed.- Parameters:
handler- the handler signaled with the connection close- Returns:
- this instance of a connection
-
openStream
Open a bidirectional stream to the remote endpoint.- Returns:
- a Quic stream as a future
-
rxOpenStream
Open a bidirectional stream to the remote endpoint.- Returns:
- a Quic stream as a future
-
openStream
Open a stream to the remote endpoint withbidirectional parameterspecifying its directionality.- Parameters:
bidirectional- whether the stream is unidirectional or bidirectional- Returns:
- A Quic stream as a future
-
rxOpenStream
Open a stream to the remote endpoint withbidirectional parameterspecifying its directionality.- Parameters:
bidirectional- whether the stream is unidirectional or bidirectional- Returns:
- A Quic stream as a future
-
datagramHandler
Set a handler called with the datagram addressed to this connection.- Parameters:
handler- the handler- Returns:
- this instance of a connection
-
writeDatagram
Send a datagram.- Parameters:
buffer- the datagram- Returns:
- a future signaling when the datagram has been written
-
rxWriteDatagram
Send a datagram.- Parameters:
buffer- the datagram- Returns:
- a future signaling when the datagram has been written
-
close
Close the connection, all associated streams will be closed before.- Returns:
- a future signaling the completion of the operation
-
rxClose
Close the connection, all associated streams will be closed before.- Returns:
- a future signaling the completion of the operation
-
close
Close the connection, all associated streams will be closed before.- Parameters:
payload- the close payload- Returns:
- a future signaling the completion of the operation
-
rxClose
Close the connection, all associated streams will be closed before.- Parameters:
payload- the close payload- Returns:
- a future signaling the completion of the operation
-
shutdown
Shutdown with a 30 seconds timeout.- Returns:
- a future completed when shutdown has completed
-
rxShutdown
Shutdown with a 30 seconds timeout.- Returns:
- a future completed when shutdown has completed
-
applicationLayerProtocol
- Returns:
- the application-level protocol negotiated during the TLS handshake
-
indicatedServerName
- Returns:
- the server name indicated during the TLS handshake
-
transportParams
- Returns:
- the transport parameters
-
maxDatagramLength
public int maxDatagramLength()- Returns:
- the maximum number of bytes the datagram payload can be or
0when the datagram extension is disabled
-
closePayload
- Returns:
- the close payload, available after the close handler is signaled
-
remoteAddress
- Returns:
- the remote connection socket address
-
localAddress
- Returns:
- the local connection socket address
-
shutdownHandler
Set ahandlernotified when the connection is shutdown: the client or server will close the connection within a certain amount of time. This gives the opportunity to thehandlerto close the connection gracefully before the socket is closed.- Parameters:
handler- the handler notified- Returns:
- a reference to this, so the API can be used fluently
-
shutdown
Initiate a graceful connection shutdown, the connection is taken out of service and closed when all the inflight streams are processed, otherwise after atimeoutthe connection will be closed.- Parameters:
timeout- the amount of time after which all resources are forcibly closed- Returns:
- a future completed when shutdown has completed
-
rxShutdown
Initiate a graceful connection shutdown, the connection is taken out of service and closed when all the inflight streams are processed, otherwise after atimeoutthe connection will be closed.- Parameters:
timeout- the amount of time after which all resources are forcibly closed- Returns:
- a future completed when shutdown has completed
-
shutdown
Initiate a graceful connection shutdown, the connection is taken out of service and closed when all the inflight streams are processed, otherwise after atimeoutthe connection will be closed.- Parameters:
timeout- the amount of time after which all resources are forcibly closedpayload- the close payload- Returns:
- a future completed when shutdown has completed
-
rxShutdown
Initiate a graceful connection shutdown, the connection is taken out of service and closed when all the inflight streams are processed, otherwise after atimeoutthe connection will be closed.- Parameters:
timeout- the amount of time after which all resources are forcibly closedpayload- the close payload- Returns:
- a future completed when shutdown has completed
-
sslSession
- Returns:
- SSLSession associated with the underlying socket. Returns null if connection is not SSL.
-
newInstance
-