Class DatabaseJournal.DatabaseRevision

  • All Implemented Interfaces:
    InstanceRevision
    Enclosing class:
    DatabaseJournal

    public class DatabaseJournal.DatabaseRevision
    extends Object
    implements InstanceRevision
    This class manages the local revision of the cluster node. It persists the local revision in the LOCAL_REVISIONS table in the clustering database.
    • Constructor Detail

      • DatabaseRevision

        public DatabaseRevision()
    • Method Detail

      • init

        protected long init​(long revision)
                     throws JournalException
        Checks whether there's a local revision value in the database for this cluster node. If not, it writes the given default revision to the database.
        Parameters:
        revision - the default value for the local revision counter
        Returns:
        the local revision
        Throws:
        JournalException - on error
      • get

        public long get()
        Description copied from interface: InstanceRevision
        Return current instance revision.
        Specified by:
        get in interface InstanceRevision
        Returns:
        instance revision