public class ALPNClientConnectionFactory extends NegotiatingClientConnectionFactory
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.Executor |
executor |
private static Logger |
LOG |
private java.util.List<ALPNProcessor.Client> |
processors |
private java.util.List<java.lang.String> |
protocols |
CONNECTOR_CONTEXT_KEY
Constructor and Description |
---|
ALPNClientConnectionFactory(java.util.concurrent.Executor executor,
ClientConnectionFactory connectionFactory,
java.util.List<java.lang.String> protocols) |
Modifier and Type | Method and Description |
---|---|
Connection |
newConnection(EndPoint endPoint,
java.util.Map<java.lang.String,java.lang.Object> context) |
getClientConnectionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
customize
private static final Logger LOG
private final java.util.List<ALPNProcessor.Client> processors
private final java.util.concurrent.Executor executor
private final java.util.List<java.lang.String> protocols
public ALPNClientConnectionFactory(java.util.concurrent.Executor executor, ClientConnectionFactory connectionFactory, java.util.List<java.lang.String> protocols)
public Connection newConnection(EndPoint endPoint, java.util.Map<java.lang.String,java.lang.Object> context)
endPoint
- the EndPoint
to link the newly created connection tocontext
- the context data to create the connectionConnection