Package org.eclipse.jetty.http2.server
Class HttpTransportOverHTTP2.TransportCallback
java.lang.Object
org.eclipse.jetty.http2.server.HttpTransportOverHTTP2.TransportCallback
- All Implemented Interfaces:
org.eclipse.jetty.util.Callback,org.eclipse.jetty.util.thread.Invocable
- Enclosing class:
HttpTransportOverHTTP2
private class HttpTransportOverHTTP2.TransportCallback
extends Object
implements org.eclipse.jetty.util.Callback
Callback that controls sends initiated by the transport, by eventually notifying a nested callback.
There are 3 sources of concurrency after a send is initiated:
- the completion of the send operation, either success or failure
- an asynchronous failure coming from the read side such as a stream being reset, or the connection being closed
- an asynchronous idle timeout
- See Also:
-
Nested Class Summary
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.NestedNested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
org.eclipse.jetty.util.thread.Invocable.InvocationType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.jetty.util.Callbackprivate booleanprivate Throwableprivate HttpTransportOverHTTP2.StateFields inherited from interface org.eclipse.jetty.util.Callback
NOOPFields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoidorg.eclipse.jetty.util.thread.Invocable.InvocationTypeprivate booleanidleTimeout(Throwable failure) private voidprivate voidsend(org.eclipse.jetty.util.Callback callback, boolean commit, Consumer<org.eclipse.jetty.util.Callback> sendFrame) private Throwablesending(org.eclipse.jetty.util.Callback callback, boolean commit) void
-
Field Details
-
_state
-
_callback
private org.eclipse.jetty.util.Callback _callback -
_commit
private boolean _commit -
_failure
-
-
Constructor Details
-
TransportCallback
private TransportCallback()
-
-
Method Details
-
reset
-
send
private void send(org.eclipse.jetty.util.Callback callback, boolean commit, Consumer<org.eclipse.jetty.util.Callback> sendFrame) -
abort
-
sending
-
succeeded
public void succeeded()- Specified by:
succeededin interfaceorg.eclipse.jetty.util.Callback
-
failed
- Specified by:
failedin interfaceorg.eclipse.jetty.util.Callback
-
idleTimeout
-
getInvocationType
public org.eclipse.jetty.util.thread.Invocable.InvocationType getInvocationType()- Specified by:
getInvocationTypein interfaceorg.eclipse.jetty.util.thread.Invocable
-