org.jboss.messaging.core.paging.impl
Class PageImpl
java.lang.Object
org.jboss.messaging.core.paging.impl.PageImpl
- All Implemented Interfaces:
- Page
public class PageImpl
- extends java.lang.Object
- implements Page
- Author:
- Clebert Suconic
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SIZE_RECORD
public static final int SIZE_RECORD
- See Also:
- Constant Field Values
PageImpl
public PageImpl(SequentialFileFactory factory,
SequentialFile file,
int pageId)
throws java.lang.Exception
- Throws:
java.lang.Exception
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.