public final class SessionProtocolNegotiationCache
extends java.lang.Object
SessionProtocol
negotiation failures. It is a LRU cache which keeps at most
64k 'host name + port' pairs.Modifier and Type | Method and Description |
---|---|
static void |
clear()
Clears the cache.
|
static boolean |
isUnsupported(java.net.SocketAddress remoteAddress,
SessionProtocol protocol)
Returns
true if the specified remoteAddress is known to have no support for
the specified SessionProtocol . |
static void |
setUnsupported(java.net.SocketAddress remoteAddress,
SessionProtocol protocol)
Updates the cache with the information that the specified
remoteAddress does not support
the specified SessionProtocol . |
public static boolean isUnsupported(java.net.SocketAddress remoteAddress, SessionProtocol protocol)
true
if the specified remoteAddress
is known to have no support for
the specified SessionProtocol
.public static void setUnsupported(java.net.SocketAddress remoteAddress, SessionProtocol protocol)
remoteAddress
does not support
the specified SessionProtocol
.public static void clear()