Class CompressedQuicTripTransport
java.lang.Object
org.tentackle.trip.transport.AbstractTransport
org.tentackle.quic.QuicTripTransport
org.tentackle.quic.CompressedQuicTripTransport
- All Implemented Interfaces:
Transport
Transport implementation for QUIC with compression.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new compressed QUIC transport. -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStreamcreateCompressedInputStream(InputStream inputStream) Creates the compressed input stream.protected OutputStreamcreateCompressedOutputStream(OutputStream outputStream) Creates the compressed output stream.createConnectionHandler(String connectionName, InputStream inputStream, OutputStream outputStream) Creates a connection handler for the given streams.createStream(Dictionary dictionary, tech.kwik.core.QuicStream quicStream) Creates a trip stream for the given QUIC stream.Methods inherited from class QuicTripTransport
accept, createClientConnectionPool, isAcceptingMethods inherited from class AbstractTransport
close, createCallHandler, createRegistry, createServerThread, getCallThreadPool, getClientDictionary, getConnection, getConnectionThreadPool, getId, getRegistry, getRemoteLookup, getServerDictionary, getTransportKey, getUri, getUriPars, isClosed, lookup, putConnection, toString
-
Field Details
-
PROTOCOL
-
-
Constructor Details
-
CompressedQuicTripTransport
Creates a new compressed QUIC transport.- Parameters:
uri- the URI of the transport
-
-
Method Details
-
createConnectionHandler
public Runnable createConnectionHandler(String connectionName, InputStream inputStream, OutputStream outputStream) Description copied from interface:TransportCreates a connection handler for the given streams.- Specified by:
createConnectionHandlerin interfaceTransport- Overrides:
createConnectionHandlerin classAbstractTransport- Parameters:
connectionName- the name of the connectioninputStream- the input streamoutputStream- the output stream- Returns:
- the connection handler
-
createStream
Description copied from class:QuicTripTransportCreates a trip stream for the given QUIC stream.- Overrides:
createStreamin classQuicTripTransport- Parameters:
dictionary- the dictionary to use for serialization/deserializationquicStream- the QUIC stream- Returns:
- the trip stream
-
createCompressedOutputStream
Creates the compressed output stream.- Parameters:
outputStream- the uncompressed output stream from the socket- Returns:
- the compressed output stream
-
createCompressedInputStream
Creates the compressed input stream.- Parameters:
inputStream- the uncompressed input stream from the socket- Returns:
- the compressed input stream
-