本文整理了Java中org.infinispan.commons.util.Util.threadLocalRandomUUID()
方法的一些代码示例,展示了Util.threadLocalRandomUUID()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.threadLocalRandomUUID()
方法的具体详情如下:
包路径:org.infinispan.commons.util.Util
类名称:Util
方法名:threadLocalRandomUUID
[英]Uses a ThreadLocalRandom to generate a UUID. Faster, but not secure
[中]使用ThreadLocalRandom生成UUID。更快,但不安全
代码示例来源:origin: org.infinispan/infinispan-tasks
TaskExecutionImpl(String name, Optional<String> what, String where, Optional<String> who) {
this(Util.threadLocalRandomUUID(), name, what, where, who);
}
代码示例来源:origin: org.infinispan/infinispan-clustered-lock
private String createRequestId() {
return Util.threadLocalRandomUUID().toString();
}
代码示例来源:origin: org.infinispan/infinispan-tasks
public TaskExecutionImpl(String name, String where, Optional<String> who, TaskContext context) {
this.uuid = Util.threadLocalRandomUUID();
this.name = name;
this.what = context.getCache().map(cache -> cache.getName());
this.where = where;
this.who = who;
}
代码示例来源:origin: org.infinispan/infinispan-server-hotrod
@Override
public String start(Cache cache, BitSet segments, String filterConverterFactory, List<byte[]> filterConverterParams, MediaType requestValueType, int batch, boolean metadata) {
String iterationId = Util.threadLocalRandomUUID().toString();
AdvancedCache<Object, Object> advancedCache = cache.getAdvancedCache();
内容来源于网络,如有侵权,请联系作者删除!