Class ChannelOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.infinispan.client.hotrod.impl.protocol.ChannelOutputStream
-
- All Implemented Interfaces:
io.netty.util.concurrent.GenericFutureListener<io.netty.util.concurrent.Future<? super Void>>
,Closeable
,Flushable
,AutoCloseable
,EventListener
public class ChannelOutputStream extends OutputStream implements io.netty.util.concurrent.GenericFutureListener<io.netty.util.concurrent.Future<? super Void>>
-
-
Constructor Summary
Constructors Constructor Description ChannelOutputStream(io.netty.channel.Channel channel, ChannelOutputStreamListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
void
operationComplete(io.netty.util.concurrent.Future<? super Void> future)
void
write(byte[] b, int off, int len)
void
write(int b)
-
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
-
-
-
Constructor Detail
-
ChannelOutputStream
public ChannelOutputStream(io.netty.channel.Channel channel, ChannelOutputStreamListener listener)
-
-
Method Detail
-
write
public void write(int b)
- Specified by:
write
in classOutputStream
-
write
public void write(byte[] b, int off, int len)
- Overrides:
write
in classOutputStream
-
flush
public void flush()
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
-