Class Block


  • public final class Block
    extends java.lang.Object
    • Constructor Detail

      • Block

        public Block​(long id,
                     java.nio.ByteBuffer byteBuffer)
      • Block

        public Block​(java.lang.Long id,
                     java.nio.ByteBuffer byteBuffer)
    • Method Detail

      • getId

        public final java.lang.Long getId()
      • getByteBuffer

        public final java.nio.ByteBuffer getByteBuffer()
      • isReadOnly

        public boolean isReadOnly()
      • setReadOnly

        public void setReadOnly​(boolean readonly)
      • isModified

        public boolean isModified()
      • setModified

        public void setModified​(boolean modified)
      • getUnderlyingByteBuffer

        public java.nio.ByteBuffer getUnderlyingByteBuffer()
      • setUnderlyingByteBuffer

        public void setUnderlyingByteBuffer​(java.nio.ByteBuffer underlyingByteBuffer)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • replicate

        public Block replicate()
        Deep copy, including ByteBuffer contents into a HeapByteBuffer.
      • replicate

        public static void replicate​(Block srcBlock,
                                     Block dstBlock)