org.infinispan.commons.util.Util.threadLocalRandomUUID()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(99)

本文整理了Java中org.infinispan.commons.util.Util.threadLocalRandomUUID()方法的一些代码示例,展示了Util.threadLocalRandomUUID()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.threadLocalRandomUUID()方法的具体详情如下:
包路径:org.infinispan.commons.util.Util
类名称:Util
方法名:threadLocalRandomUUID

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();

相关文章