Class ConnectHandler.UpstreamConnection
java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.proxy.ProxyConnection
org.eclipse.jetty.proxy.ConnectHandler.UpstreamConnection
- All Implemented Interfaces:
Closeable, AutoCloseable, Connection
- Enclosing class:
ConnectHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface Connection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo -
Field Summary
FieldsFields inherited from class ProxyConnection
LOG -
Constructor Summary
ConstructorsConstructorDescriptionUpstreamConnection(EndPoint endPoint, Executor executor, ByteBufferPool bufferPool, ConnectHandler.ConnectContext connectContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidonOpen()Callback method invoked when this connection is opened.protected intread(EndPoint endPoint, ByteBuffer buffer) protected voidwrite(EndPoint endPoint, ByteBuffer buffer, Callback callback) Methods inherited from class ProxyConnection
getByteBufferPool, getConnection, getContext, onFillable, setConnection, toConnectionStringMethods inherited from class AbstractConnection
addListener, close, failedCallback, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isFillInterested, onClose, onFillInterestedFailed, onIdleExpired, onReadTimeout, removeListener, setInputBufferSize, toString, tryFillInterested, tryFillInterested
-
Field Details
-
connectContext
-
-
Constructor Details
-
UpstreamConnection
public UpstreamConnection(EndPoint endPoint, Executor executor, ByteBufferPool bufferPool, ConnectHandler.ConnectContext connectContext)
-
-
Method Details
-
onOpen
public void onOpen()Description copied from interface:ConnectionCallback method invoked when this connection is opened.
Creators of the connection implementation are responsible for calling this method.
- Specified by:
onOpenin interfaceConnection- Overrides:
onOpenin classAbstractConnection
-
read
- Specified by:
readin classProxyConnection- Throws:
IOException
-
write
- Specified by:
writein classProxyConnection
-