Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.io.journal
Class FlashJournalRM.Buffer

java.lang.Object
  extended by com.tangosol.io.journal.FlashJournalRM.Buffer

Enclosing class:
FlashJournalRM

protected static class FlashJournalRM.Buffer
extends java.lang.Object

A Buffer is a handy shell with some helper methods around a byte[] and a ByteBuffer.


Constructor Summary
FlashJournalRM.Buffer(int cbBuffer)
          Instantiate a buffer.

 

Method Summary
 byte[] getByteArray()
          Obtain the underlying byte[].
 java.nio.ByteBuffer getByteBuffer()
          Obtain the ByteBuffer for this buffer.
 FlashJournalRM.Buffer getNext()
          Get the next buffer in a linked list of buffers.
 void render(Binary bin, int of)
          Copy the passed Binary value into the buffer at the specified offset and using the passed overlay.
 void setNext(FlashJournalRM.Buffer buf)
          Set the next buffer in a linked list of buffers.
 void setOverlay(byte[] abOv)
          Specify an overlay byte[].
 java.lang.String toString()
          

 

Constructor Detail

FlashJournalRM.Buffer

public FlashJournalRM.Buffer(int cbBuffer)
Instantiate a buffer.
Parameters:
cbBuffer - the size of the buffer

Method Detail

getByteArray

public byte[] getByteArray()
Obtain the underlying byte[].
Returns:
the byte[] for this buffer

getByteBuffer

public java.nio.ByteBuffer getByteBuffer()
Obtain the ByteBuffer for this buffer.
Returns:
an NIO ByteBuffer for the underlying byte[]

setOverlay

public void setOverlay(byte[] abOv)
Specify an overlay byte[].
Parameters:
abOv - the overlay byte[]

render

public void render(Binary bin,
                   int of)
Copy the passed Binary value into the buffer at the specified offset and using the passed overlay.
Parameters:
bin - the Binary value to copy into this buffer
of - the offset of this buffer to copy the passed Binary to

getNext

public FlashJournalRM.Buffer getNext()
Get the next buffer in a linked list of buffers. This is used by the pool implementation.
Returns:
the next buffer in a linked list of buffers

setNext

public void setNext(FlashJournalRM.Buffer buf)
Set the next buffer in a linked list of buffers. This is used by the pool implementation.
Parameters:
buf - the next buffer in a linked list of buffers

toString

public java.lang.String toString()

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.