Package fr.dyade.aaa.agent
Class HttpNetwork.NetworkOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- fr.dyade.aaa.agent.MessageOutputStream
-
- fr.dyade.aaa.agent.ByteArrayMessageOutputStream
-
- fr.dyade.aaa.agent.HttpNetwork.NetworkOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Enclosing class:
- HttpNetwork
final class HttpNetwork.NetworkOutputStream extends ByteArrayMessageOutputStream
Class used to send messages through a stream.
-
-
Field Summary
Fields Modifier and Type Field Description private intackStamp of last acked message.-
Fields inherited from class fr.dyade.aaa.agent.MessageOutputStream
buf, compressedFlows, count, oos
-
-
Constructor Summary
Constructors Constructor Description NetworkOutputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidwriteHeader()Writes the protocol header to this output stream.(package private) voidwriteMessage(Message msg, int ack, long currentTimeMillis)-
Methods inherited from class fr.dyade.aaa.agent.ByteArrayMessageOutputStream
reset, size, write, write, writeTo
-
Methods inherited from class fr.dyade.aaa.agent.MessageOutputStream
write, writeInt, writeMessage, writeMessageHeader, writeShort
-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
-
-
-
Constructor Detail
-
NetworkOutputStream
NetworkOutputStream() throws IOException- Throws:
IOException
-
-
Method Detail
-
writeHeader
protected void writeHeader()
Writes the protocol header to this output stream.- Specified by:
writeHeaderin classMessageOutputStream
-
writeMessage
void writeMessage(Message msg, int ack, long currentTimeMillis) throws IOException
- Throws:
IOException
-
-