Uses of Record Class
io.github.mahmoudimus.quic.connection.SessionCache
Packages that use SessionCache
Package
Description
A dependency-free QUIC transport (RFC 9000, 9001, 9002, 9221, 9369).
The sans-I/O QUIC connection and endpoint, ported from quinn-proto: the
Connection state machine (handshake, packet assembly and
processing, key updates, closing and draining), the Endpoint that routes datagrams and answers with Version
Negotiation, Retry and stateless resets, their configurations (TransportConfig, ServerConfig, ClientConfig, EndpointConfig), and the building blocks they are made of:
range sets (RangeSet), reassembly of received data
(Assembler), buffering of sent data (SendBuffer), streams and flow control (StreamsState), packet number spaces and ACK generation
(PacketSpace), loss detection (Recovery), pacing (Pacer), path MTU discovery (MtuDiscovery) and timers (TimerTable).-
Uses of SessionCache in io.github.mahmoudimus.quic
Methods in io.github.mahmoudimus.quic that return SessionCacheModifier and TypeMethodDescriptionQuicClient.sessionCache()The cache of session tickets and tokens connections use by default.Methods in io.github.mahmoudimus.quic with parameters of type SessionCacheModifier and TypeMethodDescriptionQuicClient.connect(InetSocketAddress remote, String serverName, Duration timeout, SessionCache cache) Connects with a cache of session tickets and tokens, waiting for the handshake.QuicClient.connectEarly(InetSocketAddress remote, String serverName, Duration timeout, SessionCache cache) Connects with a cache of session tickets and tokens, returning at once if the connection can send 0-RTT data. -
Uses of SessionCache in io.github.mahmoudimus.quic.connection
Methods in io.github.mahmoudimus.quic.connection that return SessionCacheModifier and TypeMethodDescriptionstatic SessionCacheSessionCache.memory()A bounded in-memory cache for 256 servers: up to 8 tickets and 2 tokens each.static SessionCacheSessionCache.none()A cache that remembers nothing: every connection makes a full handshake.ClientConfig.sessionCache()The cache of session tickets and tokens connections use.Methods in io.github.mahmoudimus.quic.connection with parameters of type SessionCacheModifier and TypeMethodDescriptionEndpoint.connect(long now, ClientConfig clientConfig, InetSocketAddress remote, String serverName, SessionCache cache) Starts a client connection with a cache of session tickets and tokens: it resumes with a ticket from the cache (and sends 0-RTT data if the ticket and the TLS configuration allow it), presents a token from the cache, and keeps the tickets and tokens it receives.ClientConfig.Builder.sessionCache(SessionCache cache) The cache of session tickets and NEW_TOKEN tokens: resumption, 0-RTT (withTlsConfig.Builder.earlyData(boolean)) and Retry-free reconnection.