Interface QpidByteBuffer
-
- All Superinterfaces:
AutoCloseable
public interface QpidByteBuffer extends AutoCloseable
-
-
Method Summary
-
-
-
Method Detail
-
allocate
static QpidByteBuffer allocate(boolean direct, int size)
-
allocate
static QpidByteBuffer allocate(int size)
-
allocateDirect
static QpidByteBuffer allocateDirect(int size)
-
asQpidByteBuffer
static QpidByteBuffer asQpidByteBuffer(InputStream stream) throws IOException
- Throws:
IOException
-
encryptSSL
static SSLEngineResult encryptSSL(SSLEngine engine, Collection<QpidByteBuffer> buffers, QpidByteBuffer dest) throws SSLException
- Throws:
SSLException
-
decryptSSL
static SSLEngineResult decryptSSL(SSLEngine engine, QpidByteBuffer src, QpidByteBuffer dst) throws SSLException
- Throws:
SSLException
-
inflate
static QpidByteBuffer inflate(QpidByteBuffer compressedBuffer) throws IOException
- Throws:
IOException
-
deflate
static QpidByteBuffer deflate(QpidByteBuffer uncompressedBuffer) throws IOException
- Throws:
IOException
-
write
static long write(GatheringByteChannel channel, Collection<QpidByteBuffer> qpidByteBuffers) throws IOException
- Throws:
IOException
-
wrap
static QpidByteBuffer wrap(ByteBuffer wrap)
-
wrap
static QpidByteBuffer wrap(byte[] data)
-
wrap
static QpidByteBuffer wrap(byte[] data, int offset, int length)
-
initialisePool
static void initialisePool(int bufferSize, int maxPoolSize, double sparsityFraction)
-
deinitialisePool
static void deinitialisePool()
Test use only
-
returnToPool
static void returnToPool(ByteBuffer buffer)
-
getPooledBufferSize
static int getPooledBufferSize()
-
getAllocatedDirectMemorySize
static long getAllocatedDirectMemorySize()
-
getNumberOfBuffersInUse
static int getNumberOfBuffersInUse()
-
getNumberOfBuffersInPool
static int getNumberOfBuffersInPool()
-
getPooledBufferDisposalCounter
static long getPooledBufferDisposalCounter()
-
reallocateIfNecessary
static QpidByteBuffer reallocateIfNecessary(QpidByteBuffer data)
-
concatenate
static QpidByteBuffer concatenate(List<QpidByteBuffer> buffers)
-
concatenate
static QpidByteBuffer concatenate(QpidByteBuffer... buffers)
-
emptyQpidByteBuffer
static QpidByteBuffer emptyQpidByteBuffer()
-
createQpidByteBufferTrackingThreadFactory
static ThreadFactory createQpidByteBufferTrackingThreadFactory(ThreadFactory factory)
-
close
void close()
- Specified by:
close
in interfaceAutoCloseable
-
put
QpidByteBuffer put(int index, byte b)
-
putShort
QpidByteBuffer putShort(int index, short value)
-
putChar
QpidByteBuffer putChar(int index, char value)
-
putInt
QpidByteBuffer putInt(int index, int value)
-
putLong
QpidByteBuffer putLong(int index, long value)
-
putFloat
QpidByteBuffer putFloat(int index, float value)
-
putDouble
QpidByteBuffer putDouble(int index, double value)
-
put
QpidByteBuffer put(byte b)
-
putUnsignedByte
QpidByteBuffer putUnsignedByte(short s)
-
putShort
QpidByteBuffer putShort(short value)
-
putUnsignedShort
QpidByteBuffer putUnsignedShort(int i)
-
putChar
QpidByteBuffer putChar(char value)
-
putInt
QpidByteBuffer putInt(int value)
-
putUnsignedInt
QpidByteBuffer putUnsignedInt(long value)
-
putLong
QpidByteBuffer putLong(long value)
-
putFloat
QpidByteBuffer putFloat(float value)
-
putDouble
QpidByteBuffer putDouble(double value)
-
put
QpidByteBuffer put(byte[] src)
-
put
QpidByteBuffer put(byte[] src, int offset, int length)
-
put
QpidByteBuffer put(ByteBuffer src)
-
put
QpidByteBuffer put(QpidByteBuffer src)
-
get
byte get(int index)
-
getShort
short getShort(int index)
-
getUnsignedShort
int getUnsignedShort(int index)
-
getChar
char getChar(int index)
-
getInt
int getInt(int index)
-
getLong
long getLong(int index)
-
getFloat
float getFloat(int index)
-
getDouble
double getDouble(int index)
-
get
byte get()
-
getUnsignedByte
short getUnsignedByte()
-
getShort
short getShort()
-
getUnsignedShort
int getUnsignedShort()
-
getChar
char getChar()
-
getInt
int getInt()
-
getUnsignedInt
long getUnsignedInt()
-
getLong
long getLong()
-
getFloat
float getFloat()
-
getDouble
double getDouble()
-
get
QpidByteBuffer get(byte[] dst)
-
get
QpidByteBuffer get(byte[] dst, int offset, int length)
-
copyTo
void copyTo(byte[] dst)
-
copyTo
void copyTo(ByteBuffer dst)
-
putCopyOf
void putCopyOf(QpidByteBuffer source)
-
isDirect
boolean isDirect()
-
dispose
void dispose()
-
asInputStream
InputStream asInputStream()
-
read
long read(ScatteringByteChannel channel) throws IOException
- Throws:
IOException
-
reset
QpidByteBuffer reset()
-
rewind
QpidByteBuffer rewind()
-
hasArray
boolean hasArray()
-
array
byte[] array()
-
clear
QpidByteBuffer clear()
-
compact
QpidByteBuffer compact()
-
position
int position()
-
position
QpidByteBuffer position(int newPosition)
-
limit
int limit()
-
limit
QpidByteBuffer limit(int newLimit)
-
mark
QpidByteBuffer mark()
-
remaining
int remaining()
-
hasRemaining
boolean hasRemaining()
-
hasRemaining
boolean hasRemaining(int atLeast)
-
flip
QpidByteBuffer flip()
-
capacity
int capacity()
-
duplicate
QpidByteBuffer duplicate()
-
slice
QpidByteBuffer slice()
-
view
QpidByteBuffer view(int offset, int length)
-
isSparse
boolean isSparse()
-
-