public class HTTP2Stream extends IdleTimeout implements IStream
Stream.ListenerCHANNEL_ATTRIBUTE| Constructor and Description |
|---|
HTTP2Stream(Scheduler scheduler,
ISession session,
int streamId) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
data(DataFrame frame,
Callback callback) |
Object |
getAttribute(String key) |
int |
getId() |
Stream.Listener |
getListener() |
protected int |
getRecvWindow() |
int |
getSendWindow() |
ISession |
getSession() |
void |
headers(HeadersFrame frame,
Callback callback) |
boolean |
isClosed() |
boolean |
isOpen() |
boolean |
isReset() |
protected void |
notifyData(Stream stream,
DataFrame frame,
Callback callback) |
protected void |
onIdleExpired(TimeoutException timeout) |
boolean |
process(Frame frame,
Callback callback) |
void |
push(PushPromiseFrame frame,
Promise<Stream> promise) |
Object |
removeAttribute(String key) |
void |
reset(ResetFrame frame,
Callback callback) |
void |
setAttribute(String key,
Object value) |
void |
setListener(Stream.Listener listener) |
String |
toString() |
void |
updateClose(boolean update,
boolean local)
Updates the close state of this stream.
|
int |
updateRecvWindow(int delta) |
int |
updateSendWindow(int delta) |
checkIdleTimeout, getIdleTimeout, getIdleTimestamp, notIdle, onClose, onOpen, setIdleTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdleTimeout, setIdleTimeoutpublic ISession getSession()
getSession in interface StreamgetSession in interface IStreampublic void headers(HeadersFrame frame, Callback callback)
public void push(PushPromiseFrame frame, Promise<Stream> promise)
public void reset(ResetFrame frame, Callback callback)
public Object getAttribute(String key)
getAttribute in interface Streampublic void setAttribute(String key, Object value)
setAttribute in interface Streampublic Object removeAttribute(String key)
removeAttribute in interface Streampublic boolean isOpen()
isOpen in class IdleTimeoutprotected void onIdleExpired(TimeoutException timeout)
onIdleExpired in class IdleTimeoutpublic Stream.Listener getListener()
getListener in interface IStreampublic void setListener(Stream.Listener listener)
setListener in interface IStreampublic void updateClose(boolean update,
boolean local)
IStreamupdateClose in interface IStreamupdate - whether to update the close statelocal - whether the update comes from a local operation
(such as sending a frame that ends the stream)
or a remote operation (such as receiving a frame
that ends the stream).public int getSendWindow()
getSendWindow in interface IStreamprotected int getRecvWindow()
public int updateSendWindow(int delta)
updateSendWindow in interface IStreampublic int updateRecvWindow(int delta)
updateRecvWindow in interface IStreamCopyright © 1995-2014 Webtide. All Rights Reserved.