final class OutboundMessage extends MessageOutputStream
| Modifier and Type | Field and Description |
|---|---|
(package private) org.xnio.streams.BufferPipeOutputStream.BufferWriter |
bufferWriter |
(package private) boolean |
cancelled |
(package private) boolean |
cancelSent |
(package private) RemoteConnectionChannel |
channel |
(package private) boolean |
closeCalled |
(package private) boolean |
closeReceived |
(package private) boolean |
eofSent |
(package private) static IntIndexer<OutboundMessage> |
INDEXER |
(package private) int |
maximumWindow |
(package private) short |
messageId |
(package private) org.xnio.streams.BufferPipeOutputStream |
pipeOutputStream |
(package private) boolean |
released |
(package private) long |
remaining |
(package private) int |
window |
| Constructor and Description |
|---|
OutboundMessage(short messageId,
RemoteConnectionChannel channel,
int window,
long maxOutboundMessageSize) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
acknowledge(int count) |
(package private) org.xnio.Pooled<java.nio.ByteBuffer> |
allocate(byte protoId) |
MessageOutputStream |
cancel()
Cancel this message stream.
|
void |
close()
Close this message stream.
|
(package private) void |
dumpState(java.lang.StringBuilder b) |
void |
flush()
Flush this message stream.
|
private java.io.IOException |
overrun() |
(package private) void |
remoteClosed() |
java.lang.String |
toString() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
final short messageId
final RemoteConnectionChannel channel
final org.xnio.streams.BufferPipeOutputStream pipeOutputStream
final int maximumWindow
int window
boolean closeCalled
boolean closeReceived
boolean cancelled
boolean cancelSent
boolean eofSent
boolean released
long remaining
final org.xnio.streams.BufferPipeOutputStream.BufferWriter bufferWriter
static final IntIndexer<OutboundMessage> INDEXER
OutboundMessage(short messageId,
RemoteConnectionChannel channel,
int window,
long maxOutboundMessageSize)
org.xnio.Pooled<java.nio.ByteBuffer> allocate(byte protoId)
void acknowledge(int count)
void remoteClosed()
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionprivate java.io.IOException overrun()
public void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
MessageOutputStreamflush in interface java.io.Flushableflush in class MessageOutputStreamjava.io.IOException - if an error occurs while flushing the streampublic void close()
throws java.io.IOException
MessageOutputStreamclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class MessageOutputStreamjava.io.IOException - if a error occurs while closing the streampublic MessageOutputStream cancel()
MessageOutputStreamcancel in interface org.xnio.Cancellablecancel in class MessageOutputStreampublic java.lang.String toString()
toString in class java.lang.Objectvoid dumpState(java.lang.StringBuilder b)