Package org.redisson.api
Interface RBinaryStream
-
- All Superinterfaces:
RBucket<byte[]>
,RBucketAsync<byte[]>
,RExpirable
,RExpirableAsync
,RObject
,RObjectAsync
- All Known Implementing Classes:
RedissonBinaryStream
public interface RBinaryStream extends RBucket<byte[]>
Binary stream holder stores a sequence of bytes. Maximum size of stream is limited to 512Mb.- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AsynchronousByteChannel
getAsynchronousChannel()
Returns async channel object which allows to write and read binary stream.SeekableByteChannel
getChannel()
Returns channel object which allows to write and read binary stream.InputStream
getInputStream()
Returns inputStream object which allows to read binary stream.OutputStream
getOutputStream()
Returns outputStream object which allows to write binary stream.-
Methods inherited from interface org.redisson.api.RBucket
addListener, compareAndSet, get, getAndDelete, getAndSet, getAndSet, set, set, setAndKeepTTL, setIfExists, setIfExists, size, trySet, trySet
-
Methods inherited from interface org.redisson.api.RBucketAsync
addListenerAsync, compareAndSetAsync, getAndDeleteAsync, getAndSetAsync, getAndSetAsync, getAsync, setAndKeepTTLAsync, setAsync, setAsync, setIfExistsAsync, setIfExistsAsync, sizeAsync, trySetAsync, trySetAsync
-
Methods inherited from interface org.redisson.api.RExpirable
clearExpire, expire, expire, expireAt, expireAt, remainTimeToLive
-
Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
-
Methods inherited from interface org.redisson.api.RObject
copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
-
Methods inherited from interface org.redisson.api.RObjectAsync
copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
-
-
-
Method Detail
-
getAsynchronousChannel
AsynchronousByteChannel getAsynchronousChannel()
Returns async channel object which allows to write and read binary stream. This object isn't thread-safe.- Returns:
- channel object
-
getChannel
SeekableByteChannel getChannel()
Returns channel object which allows to write and read binary stream. This object isn't thread-safe.- Returns:
- channel object
-
getInputStream
InputStream getInputStream()
Returns inputStream object which allows to read binary stream. This object isn't thread-safe.- Returns:
- stream object
-
getOutputStream
OutputStream getOutputStream()
Returns outputStream object which allows to write binary stream. This object isn't thread-safe.- Returns:
- stream object
-
-