public static class ProxyConnectionFactory.ProxyProtocolV1Connection extends AbstractConnection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo
Modifier and Type | Field and Description |
---|---|
private int[] |
__size |
private java.lang.StringBuilder |
_builder |
private Connector |
_connector |
private java.lang.String[] |
_field |
private int |
_fields |
private int |
_length |
private java.lang.String |
_next |
Modifier | Constructor and Description |
---|---|
protected |
ProxyProtocolV1Connection(EndPoint endp,
Connector connector,
java.lang.String next,
java.nio.ByteBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
void |
onFillable()
Callback method invoked when the endpoint is ready to be read.
|
void |
onOpen()
Callback method invoked when this connection is opened.
|
private boolean |
parse(java.nio.ByteBuffer buffer) |
addListener, close, failedCallback, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isFillInterested, onClose, onFillInterestedFailed, onIdleExpired, onReadTimeout, removeListener, setInputBufferSize, toConnectionString, toString, tryFillInterested, tryFillInterested
private final int[] __size
private final Connector _connector
private final java.lang.String _next
private final java.lang.StringBuilder _builder
private final java.lang.String[] _field
private int _fields
private int _length
public void onOpen()
Connection
Callback method invoked when this connection is opened.
Creators of the connection implementation are responsible for calling this method.
onOpen
in interface Connection
onOpen
in class AbstractConnection
private boolean parse(java.nio.ByteBuffer buffer)
public void onFillable()
AbstractConnection
Callback method invoked when the endpoint is ready to be read.
onFillable
in class AbstractConnection
AbstractConnection.fillInterested()