public class RedissonBinaryStream.RedissonAsynchronousByteChannel extends Object implements AsynchronousByteChannel
Constructor and Description |
---|
RedissonAsynchronousByteChannel() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
isOpen() |
long |
position() |
void |
position(long newPosition) |
Future<Integer> |
read(ByteBuffer dst) |
<A> void |
read(ByteBuffer dst,
A attachment,
CompletionHandler<Integer,? super A> handler) |
Future<Integer> |
write(ByteBuffer src) |
<A> void |
write(ByteBuffer src,
A attachment,
CompletionHandler<Integer,? super A> handler) |
public long position()
public void position(long newPosition)
public <A> void read(ByteBuffer dst, A attachment, CompletionHandler<Integer,? super A> handler)
read
in interface AsynchronousByteChannel
public Future<Integer> read(ByteBuffer dst)
read
in interface AsynchronousByteChannel
public <A> void write(ByteBuffer src, A attachment, CompletionHandler<Integer,? super A> handler)
write
in interface AsynchronousByteChannel
public Future<Integer> write(ByteBuffer src)
write
in interface AsynchronousByteChannel
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface AsynchronousChannel
close
in interface Channel
IOException
Copyright © 2014–2020 Redisson. All rights reserved.