org.javers.core.commit.DistributedCommitSeqGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javers-core Show documentation
Show all versions of javers-core Show documentation
JaVers - object auditing and diff framework for Java
package org.javers.core.commit;
import java.util.UUID;
/**
* Generates commitId with random majorId and minorId set to 0.
* Can be used in distributed applications.
*
* @deprecated
* @author bartosz.walacik
*/
@Deprecated
class DistributedCommitSeqGenerator {
CommitId nextId() {
return new CommitId(Math.abs(UUID.randomUUID().getLeastSignificantBits()),0);
}
}