
org.duelengine.duel.UniqueClientIDStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of duel-runtime Show documentation
Show all versions of duel-runtime Show documentation
Dual-side template engine for the JVM
The newest version!
package org.duelengine.duel;
import java.util.UUID;
public class UniqueClientIDStrategy implements ClientIDStrategy {
private final String prefix;
public UniqueClientIDStrategy() {
this("_");
}
public UniqueClientIDStrategy(String value) {
prefix = value;
}
@Override
public String nextID() {
return prefix + UUID.randomUUID().toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy