org.apache.jackrabbit.core.journal
Class MemoryRevision

java.lang.Object
  extended by org.apache.jackrabbit.core.journal.MemoryRevision
All Implemented Interfaces:
InstanceRevision

public class MemoryRevision
extends Object
implements InstanceRevision

Memory-based revision, useful for testing purposes only.


Constructor Summary
MemoryRevision()
           
 
Method Summary
 void close()
          Closes the instance revision.
 long get()
          Return current instance revision.
 void set(long value)
          Set current instance revision.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryRevision

public MemoryRevision()
Method Detail

get

public long get()
         throws JournalException
Return current instance revision.

Specified by:
get in interface InstanceRevision
Returns:
instance revision
Throws:
JournalException - if some error occurs

set

public void set(long value)
         throws JournalException
Set current instance revision.

Specified by:
set in interface InstanceRevision
Parameters:
value - new instance revision
Throws:
JournalException - if some error occurs

close

public void close()
Closes the instance revision.

Specified by:
close in interface InstanceRevision


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.