Class CountableBufferedOutputStream
java.lang.Object
java.io.OutputStream
com.swiftmq.impl.net.netty.CountableBufferedOutputStream
- All Implemented Interfaces:
Countable, com.swiftmq.net.protocol.OutputListener, Closeable, Flushable, AutoCloseable
public class CountableBufferedOutputStream
extends OutputStream
implements Countable, com.swiftmq.net.protocol.OutputListener
-
Constructor Summary
ConstructorsConstructorDescriptionCountableBufferedOutputStream(com.swiftmq.net.protocol.ProtocolOutputHandler protocolOutputHandler, io.netty.channel.socket.SocketChannel channel) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddByteCount(long cnt) voidflush()longintperformWrite(byte[] b, int offset, int len) voidvoidwrite(byte[] b, int offset, int len) voidwrite(int b) Methods inherited from class OutputStream
close, nullOutputStream, write
-
Constructor Details
-
CountableBufferedOutputStream
public CountableBufferedOutputStream(com.swiftmq.net.protocol.ProtocolOutputHandler protocolOutputHandler, io.netty.channel.socket.SocketChannel channel)
-
-
Method Details
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
performWrite
- Specified by:
performWritein interfacecom.swiftmq.net.protocol.OutputListener- Throws:
IOException
-
addByteCount
public void addByteCount(long cnt) - Specified by:
addByteCountin interfaceCountable
-
getByteCount
public long getByteCount()- Specified by:
getByteCountin interfaceCountable
-
resetByteCount
public void resetByteCount()- Specified by:
resetByteCountin interfaceCountable
-