org.jboss.messaging.core.paging.impl
Class PageImpl

java.lang.Object
  extended by org.jboss.messaging.core.paging.impl.PageImpl
All Implemented Interfaces:
Page

public class PageImpl
extends java.lang.Object
implements Page

Author:
Clebert Suconic

Field Summary
static int SIZE_RECORD
           
 
Constructor Summary
PageImpl(SequentialFileFactory factory, SequentialFile file, int pageId)
           
 
Method Summary
 void close()
           
 void delete()
           
 int getNumberOfMessages()
           
 int getPageId()
           
 int getSize()
           
 void open()
           
 java.util.List<PagedMessage> read()
           
 void sync()
           
 void write(PagedMessage message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIZE_RECORD

public static final int SIZE_RECORD
See Also:
Constant Field Values
Constructor Detail

PageImpl

public PageImpl(SequentialFileFactory factory,
                SequentialFile file,
                int pageId)
         throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getPageId

public int getPageId()
Specified by:
getPageId in interface Page

read

public java.util.List<PagedMessage> read()
                                  throws java.lang.Exception
Specified by:
read in interface Page
Throws:
java.lang.Exception

write

public void write(PagedMessage message)
           throws java.lang.Exception
Specified by:
write in interface Page
Throws:
java.lang.Exception

sync

public void sync()
          throws java.lang.Exception
Specified by:
sync in interface Page
Throws:
java.lang.Exception

open

public void open()
          throws java.lang.Exception
Specified by:
open in interface Page
Throws:
java.lang.Exception

close

public void close()
           throws java.lang.Exception
Specified by:
close in interface Page
Throws:
java.lang.Exception

delete

public void delete()
            throws java.lang.Exception
Specified by:
delete in interface Page
Throws:
java.lang.Exception

getNumberOfMessages

public int getNumberOfMessages()
Specified by:
getNumberOfMessages in interface Page

getSize

public int getSize()
Specified by:
getSize in interface Page


Copyright © 2006 JBoss Inc. All Rights Reserved.