public final class SessionProtocolNegotiationCache extends 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(Endpoint endpointWithPort,
SessionProtocol protocol)
Returns
true if the specified Endpoint is known to have no support for
the specified SessionProtocol. |
static boolean |
isUnsupported(SocketAddress remoteAddress,
SessionProtocol protocol)
Returns
true if the specified remoteAddress is known to have no support for
the specified SessionProtocol. |
static void |
setUnsupported(SocketAddress remoteAddress,
SessionProtocol protocol)
Updates the cache with the information that the specified
remoteAddress does not support
the specified SessionProtocol. |
public static boolean isUnsupported(Endpoint endpointWithPort, SessionProtocol protocol)
true if the specified Endpoint is known to have no support for
the specified SessionProtocol.public static boolean isUnsupported(SocketAddress remoteAddress, SessionProtocol protocol)
true if the specified remoteAddress is known to have no support for
the specified SessionProtocol.public static void setUnsupported(SocketAddress remoteAddress, SessionProtocol protocol)
remoteAddress does not support
the specified SessionProtocol.public static void clear()
Copyright © 2020 LeanCloud. All rights reserved.