Interface QpidByteBuffer

  • All Superinterfaces:
    java.lang.AutoCloseable

    public interface QpidByteBuffer
    extends java.lang.AutoCloseable
    • Method Detail

      • allocate

        static QpidByteBuffer allocate​(boolean direct,
                                       int size)
      • asQpidByteBuffer

        static QpidByteBuffer asQpidByteBuffer​(java.io.InputStream stream)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • encryptSSL

        static javax.net.ssl.SSLEngineResult encryptSSL​(javax.net.ssl.SSLEngine engine,
                                                        java.util.Collection<QpidByteBuffer> buffers,
                                                        QpidByteBuffer dest)
                                                 throws javax.net.ssl.SSLException
        Throws:
        javax.net.ssl.SSLException
      • decryptSSL

        static javax.net.ssl.SSLEngineResult decryptSSL​(javax.net.ssl.SSLEngine engine,
                                                        QpidByteBuffer src,
                                                        QpidByteBuffer dst)
                                                 throws javax.net.ssl.SSLException
        Throws:
        javax.net.ssl.SSLException
      • write

        static long write​(java.nio.channels.GatheringByteChannel channel,
                          java.util.Collection<QpidByteBuffer> qpidByteBuffers)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • 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​(java.nio.ByteBuffer buffer)
      • getPooledBufferSize

        static int getPooledBufferSize()
      • getAllocatedDirectMemorySize

        static long getAllocatedDirectMemorySize()
      • getNumberOfBuffersInUse

        static int getNumberOfBuffersInUse()
      • getNumberOfBuffersInPool

        static int getNumberOfBuffersInPool()
      • getPooledBufferDisposalCounter

        static long getPooledBufferDisposalCounter()
      • createQpidByteBufferTrackingThreadFactory

        static java.util.concurrent.ThreadFactory createQpidByteBufferTrackingThreadFactory​(java.util.concurrent.ThreadFactory factory)
      • close

        void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • 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()
      • copyTo

        void copyTo​(byte[] dst)
      • copyTo

        void copyTo​(java.nio.ByteBuffer dst)
      • isDirect

        boolean isDirect()
      • dispose

        void dispose()
      • asInputStream

        java.io.InputStream asInputStream()
      • read

        long read​(java.nio.channels.ScatteringByteChannel channel)
           throws java.io.IOException
        Throws:
        java.io.IOException
      • hasArray

        boolean hasArray()
      • array

        byte[] array()
      • position

        int position()
      • limit

        int limit()
      • remaining

        int remaining()
      • hasRemaining

        boolean hasRemaining()
      • hasRemaining

        boolean hasRemaining​(int atLeast)
      • capacity

        int capacity()
      • isSparse

        boolean isSparse()