Package com.linecorp.armeria.client
Class SessionProtocolNegotiationCache
java.lang.Object
com.linecorp.armeria.client.SessionProtocolNegotiationCache
Keeps the recent
SessionProtocol
negotiation failures. It is a LRU cache which keeps at most
64k 'host name + port' pairs.-
Method Summary
Modifier and TypeMethodDescriptionstatic void
clear()
Clears the cache.static boolean
isUnsupported
(Endpoint endpointWithPort, SessionProtocol protocol) Returnstrue
if the specifiedEndpoint
is known to have no support for the specifiedSessionProtocol
.static boolean
isUnsupported
(SocketAddress remoteAddress, SessionProtocol protocol) Returnstrue
if the specifiedremoteAddress
is known to have no support for the specifiedSessionProtocol
.static void
setUnsupported
(SocketAddress remoteAddress, SessionProtocol protocol) Updates the cache with the information that the specifiedremoteAddress
does not support the specifiedSessionProtocol
.
-
Method Details
-
isUnsupported
Returnstrue
if the specifiedEndpoint
is known to have no support for the specifiedSessionProtocol
. -
isUnsupported
Returnstrue
if the specifiedremoteAddress
is known to have no support for the specifiedSessionProtocol
. -
setUnsupported
Updates the cache with the information that the specifiedremoteAddress
does not support the specifiedSessionProtocol
. -
clear
public static void clear()Clears the cache.
-