Class MVCCGenerationsState
java.lang.Object
com.gigaspaces.internal.server.space.mvcc.MVCCGenerationsState
- All Implemented Interfaces:
ISwapExternalizable,SmartExternalizable,Externalizable,Serializable
public class MVCCGenerationsState
extends Object
implements SmartExternalizable, ISwapExternalizable, Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMVCCGenerationsState(long nextGeneration, long completedGeneration, Set<Long> uncompletedGenerations) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUncompletedGeneration(long generation) static MVCCGenerationsStateempty()booleanlonglonginthashCode()booleanisUncompletedGeneration(long generation) voidvoidvoidremoveFromUncompletedGenerations(Set<Long> completedSet) static MVCCGenerationsStaterevertGenerationState(long generationToRevert) voidsetCompletedGeneration(long completedGeneration) voidsetNextGeneration(long nextGeneration) toString()voidvoidwriteToSwap(ObjectOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
MVCCGenerationsState
-
MVCCGenerationsState
public MVCCGenerationsState()
-
-
Method Details
-
empty
-
revertGenerationState
-
getNextGeneration
public long getNextGeneration() -
setNextGeneration
public void setNextGeneration(long nextGeneration) -
getCompletedGeneration
public long getCompletedGeneration() -
setCompletedGeneration
public void setCompletedGeneration(long completedGeneration) -
isUncompletedGeneration
public boolean isUncompletedGeneration(long generation) -
addUncompletedGeneration
public void addUncompletedGeneration(long generation) -
removeFromUncompletedGenerations
-
getCopyOfUncompletedGenerationsSet
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeToSwap
- Specified by:
writeToSwapin interfaceISwapExternalizable- Throws:
IOException
-
readFromSwap
- Specified by:
readFromSwapin interfaceISwapExternalizable- Throws:
IOExceptionClassNotFoundException
-
equals
-
hashCode
public int hashCode() -
toString
-