org.infinispan.container.versioning
Class SimpleClusteredVersion

java.lang.Object
  extended by org.infinispan.container.versioning.SimpleClusteredVersion
All Implemented Interfaces:
EntryVersion, IncrementableEntryVersion

@Immutable
public class SimpleClusteredVersion
extends Object
implements IncrementableEntryVersion

A simple versioning scheme that is cluster-aware

Since:
5.1
Author:
Manik Surtani

Nested Class Summary
static class SimpleClusteredVersion.Externalizer
           
 
Constructor Summary
SimpleClusteredVersion(int topologyId, long version)
           
 
Method Summary
 InequalVersionComparisonResult compareTo(EntryVersion other)
          Compares the given version against the current instance.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleClusteredVersion

public SimpleClusteredVersion(int topologyId,
                              long version)
Method Detail

compareTo

public InequalVersionComparisonResult compareTo(EntryVersion other)
Description copied from interface: EntryVersion
Compares the given version against the current instance.

Specified by:
compareTo in interface EntryVersion
Parameters:
other - the other version to compare against
Returns:
a InequalVersionComparisonResult instance

toString

public String toString()
Overrides:
toString in class Object

-->

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.