public class GelfChunkingOutputStream extends OutputStream
| Constructor and Description |
|---|
GelfChunkingOutputStream(InetAddress address,
int port,
int maxPacketSize,
MessageIdProvider messageIdProvider)
Create a new GelfChunkingOutputStream
|
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
void |
start() |
void |
write(int b) |
close, write, writepublic GelfChunkingOutputStream(InetAddress address, int port, int maxPacketSize, MessageIdProvider messageIdProvider)
address - The address of the remove serverport - The port of the remote servermaxPacketSize - The maximum number of bytes allowed before chunking beginsmessageIdProvider - A object that generates totally unique (for this machine) 8-byte message IDs.public void start()
throws SocketException,
UnknownHostException
SocketExceptionUnknownHostExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionCopyright © 2011–2015. All rights reserved.