Package org.eclipse.jetty.http2.client
Class HTTP2ClientConnectionFactory.HTTP2ClientConnection
- java.lang.Object
-
- org.eclipse.jetty.io.AbstractConnection
-
- org.eclipse.jetty.http2.HTTP2Connection
-
- org.eclipse.jetty.http2.client.HTTP2ClientConnectionFactory.HTTP2ClientConnection
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,org.eclipse.jetty.io.Connection
,org.eclipse.jetty.io.WriteFlusher.Listener
,org.eclipse.jetty.util.Callback
,org.eclipse.jetty.util.thread.Invocable
- Enclosing class:
- HTTP2ClientConnectionFactory
private static class HTTP2ClientConnectionFactory.HTTP2ClientConnection extends HTTP2Connection implements org.eclipse.jetty.util.Callback
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.http2.HTTP2Connection
HTTP2Connection.HTTP2Producer
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
org.eclipse.jetty.util.Callback.Completable, org.eclipse.jetty.util.Callback.Completing, org.eclipse.jetty.util.Callback.Nested
-
-
Field Summary
Fields Modifier and Type Field Description private HTTP2Client
client
private Session.Listener
listener
private org.eclipse.jetty.util.Promise<Session>
promise
-
Fields inherited from class org.eclipse.jetty.http2.HTTP2Connection
LOG
-
-
Constructor Summary
Constructors Modifier Constructor Description private
HTTP2ClientConnection(HTTP2Client client, org.eclipse.jetty.io.ByteBufferPool byteBufferPool, java.util.concurrent.Executor executor, org.eclipse.jetty.io.EndPoint endpoint, ISession session, int bufferSize, org.eclipse.jetty.util.Promise<Session> promise, Session.Listener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
failed(java.lang.Throwable x)
org.eclipse.jetty.util.thread.Invocable.InvocationType
getInvocationType()
void
onOpen()
void
succeeded()
-
Methods inherited from class org.eclipse.jetty.http2.HTTP2Connection
close, dispatch, getBytesIn, getBytesOut, getMessagesIn, getMessagesOut, getParser, getSession, offerTask, onClose, onFillable, onFlushed, onIdleExpired, produce, setInputBuffer, wrapParserListener
-
Methods inherited from class org.eclipse.jetty.io.AbstractConnection
addListener, failedCallback, fillInterested, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, isFillInterested, onFillInterestedFailed, onReadTimeout, removeListener, setInputBufferSize, toConnectionString, toString, tryFillInterested, tryFillInterested
-
-
-
-
Field Detail
-
client
private final HTTP2Client client
-
promise
private final org.eclipse.jetty.util.Promise<Session> promise
-
listener
private final Session.Listener listener
-
-
Constructor Detail
-
HTTP2ClientConnection
private HTTP2ClientConnection(HTTP2Client client, org.eclipse.jetty.io.ByteBufferPool byteBufferPool, java.util.concurrent.Executor executor, org.eclipse.jetty.io.EndPoint endpoint, ISession session, int bufferSize, org.eclipse.jetty.util.Promise<Session> promise, Session.Listener listener)
-
-
Method Detail
-
onOpen
public void onOpen()
- Specified by:
onOpen
in interfaceorg.eclipse.jetty.io.Connection
- Overrides:
onOpen
in classHTTP2Connection
-
succeeded
public void succeeded()
- Specified by:
succeeded
in interfaceorg.eclipse.jetty.util.Callback
-
failed
public void failed(java.lang.Throwable x)
- Specified by:
failed
in interfaceorg.eclipse.jetty.util.Callback
-
getInvocationType
public org.eclipse.jetty.util.thread.Invocable.InvocationType getInvocationType()
- Specified by:
getInvocationType
in interfaceorg.eclipse.jetty.util.thread.Invocable
-
-