org.neo4j.kernel.impl.transaction.xaframework
Interface LogBuffer

All Known Implementing Classes:
BlockLogBuffer, DirectMappedLogBuffer, InMemoryLogBuffer, NullLogBuffer

public interface LogBuffer


Method Summary
 void force()
          Makes sure the data added to this buffer is written out to the underlying file and forced.
 FileChannel getFileChannel()
           
 long getFileChannelPosition()
           
 LogBuffer put(byte b)
           
 LogBuffer put(byte[] bytes)
           
 LogBuffer put(char[] chars)
           
 LogBuffer putDouble(double d)
           
 LogBuffer putFloat(float f)
           
 LogBuffer putInt(int i)
           
 LogBuffer putLong(long l)
           
 LogBuffer putShort(short b)
           
 void writeOut()
          Makes sure the data added to this buffer is written out to the underlying file.
 

Method Detail

put

LogBuffer put(byte b)
              throws IOException
Throws:
IOException

putShort

LogBuffer putShort(short b)
                   throws IOException
Throws:
IOException

putInt

LogBuffer putInt(int i)
                 throws IOException
Throws:
IOException

putLong

LogBuffer putLong(long l)
                  throws IOException
Throws:
IOException

putFloat

LogBuffer putFloat(float f)
                   throws IOException
Throws:
IOException

putDouble

LogBuffer putDouble(double d)
                    throws IOException
Throws:
IOException

put

LogBuffer put(byte[] bytes)
              throws IOException
Throws:
IOException

put

LogBuffer put(char[] chars)
              throws IOException
Throws:
IOException

writeOut

void writeOut()
              throws IOException
Makes sure the data added to this buffer is written out to the underlying file.

Throws:
IOException - if the data couldn't be written.

force

void force()
           throws IOException
Makes sure the data added to this buffer is written out to the underlying file and forced.

Throws:
IOException - if the data couldn't be written.

getFileChannelPosition

long getFileChannelPosition()
                            throws IOException
Throws:
IOException

getFileChannel

FileChannel getFileChannel()


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.