Package org.redisson
Class RedissonBinaryStream.RedissonAsynchronousByteChannel
- java.lang.Object
-
- org.redisson.RedissonBinaryStream.RedissonAsynchronousByteChannel
-
- All Implemented Interfaces:
Closeable,AutoCloseable,AsynchronousByteChannel,AsynchronousChannel,Channel
- Enclosing class:
- RedissonBinaryStream
public class RedissonBinaryStream.RedissonAsynchronousByteChannel extends Object implements AsynchronousByteChannel
-
-
Constructor Summary
Constructors Constructor Description RedissonAsynchronousByteChannel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisOpen()longposition()voidposition(long newPosition)Future<Integer>read(ByteBuffer dst)<A> voidread(ByteBuffer dst, A attachment, CompletionHandler<Integer,? super A> handler)Future<Integer>write(ByteBuffer src)<A> voidwrite(ByteBuffer src, A attachment, CompletionHandler<Integer,? super A> handler)
-
-
-
Method Detail
-
position
public long position()
-
position
public void position(long newPosition)
-
read
public <A> void read(ByteBuffer dst, A attachment, CompletionHandler<Integer,? super A> handler)
- Specified by:
readin interfaceAsynchronousByteChannel
-
read
public Future<Integer> read(ByteBuffer dst)
- Specified by:
readin interfaceAsynchronousByteChannel
-
write
public <A> void write(ByteBuffer src, A attachment, CompletionHandler<Integer,? super A> handler)
- Specified by:
writein interfaceAsynchronousByteChannel
-
write
public Future<Integer> write(ByteBuffer src)
- Specified by:
writein interfaceAsynchronousByteChannel
-
close
public void close() throws IOException- Specified by:
closein interfaceAsynchronousChannel- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-