- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.bazaarvoice.emodb.common.zookeeper.store.ZkTimestampSerializer.fromString()
方法的一些代码示例,展示了ZkTimestampSerializer.fromString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZkTimestampSerializer.fromString()
方法的具体详情如下:
包路径:com.bazaarvoice.emodb.common.zookeeper.store.ZkTimestampSerializer
类名称:ZkTimestampSerializer
方法名:fromString
暂无
代码示例来源:origin: com.bazaarvoice.emodb/emodb-sor
@Override
public StashRunTimeInfo fromString(String string) {
if (string == null) {
return null;
}
try {
List<String> strings = Arrays.asList(StringUtils.split(string, ";"));
Long timestamp = TIMESTAMP_SERIALIZER.fromString(strings.get(0));
String dataCenter = strings.get(1);
Long expiredTimestamp = TIMESTAMP_SERIALIZER.fromString(strings.get(2));
List<String> placements = Arrays.asList(StringUtils.split(strings.get(3), ","));
return new StashRunTimeInfo(timestamp, placements, dataCenter, expiredTimestamp);
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException("StashRunTimeInfo string must be of the form \"timestamp;datacenter;remote;placement1,placement2,placement3,...\"");
}
}
}
代码示例来源:origin: bazaarvoice/emodb
@Override
public StashRunTimeInfo fromString(String string) {
if (string == null) {
return null;
}
try {
List<String> strings = Arrays.asList(StringUtils.split(string, ";"));
Long timestamp = TIMESTAMP_SERIALIZER.fromString(strings.get(0));
String dataCenter = strings.get(1);
Long expiredTimestamp = TIMESTAMP_SERIALIZER.fromString(strings.get(2));
List<String> placements = Arrays.asList(StringUtils.split(strings.get(3), ","));
return new StashRunTimeInfo(timestamp, placements, dataCenter, expiredTimestamp);
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException("StashRunTimeInfo string must be of the form \"timestamp;datacenter;remote;placement1,placement2,placement3,...\"");
}
}
}
代码示例来源:origin: bazaarvoice/emodb
@Override
public AdHocThrottle fromString(String string) {
if (string == null) {
return null;
}
try {
int comma = string.indexOf(",");
int limit = Integer.parseInt(string.substring(0, comma));
Instant expiration = Instant.ofEpochMilli(TIMESTAMP_SERIALIZER.fromString(string.substring(comma + 1)));
return AdHocThrottle.create(limit, expiration);
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException("Throttle string must be of the form \"limit,expiration date\"");
}
}
}
本文整理了Java中com.bazaarvoice.emodb.common.zookeeper.store.ZkTimestampSerializer类的一些代码示例,展示了ZkTimestampS
本文整理了Java中com.bazaarvoice.emodb.common.zookeeper.store.ZkMapStore类的一些代码示例,展示了ZkMapStore类的具体用法。这些代码示例
本文整理了Java中com.bazaarvoice.emodb.common.zookeeper.store.ZkDurationSerializer类的一些代码示例,展示了ZkDurationSer
本文整理了Java中com.bazaarvoice.emodb.common.zookeeper.store.ZkBooleanSerializer类的一些代码示例,展示了ZkBooleanSeria
本文整理了Java中com.bazaarvoice.emodb.common.zookeeper.store.ZkValueStore类的一些代码示例,展示了ZkValueStore类的具体用法。这些
本文整理了Java中com.bazaarvoice.emodb.common.zookeeper.store.ZkValueSerializer类的一些代码示例,展示了ZkValueSerialize
本文整理了Java中com.bazaarvoice.emodb.common.zookeeper.store.ZkMapStore.()方法的一些代码示例,展示了ZkMapStore.()的具体用法。
本文整理了Java中com.bazaarvoice.emodb.common.zookeeper.store.ZkTimestampSerializer.()方法的一些代码示例,展示了ZkTimest
本文整理了Java中com.bazaarvoice.emodb.common.zookeeper.store.ZkTimestampSerializer.fromString()方法的一些代码示例,展
本文整理了Java中com.bazaarvoice.emodb.common.zookeeper.store.ZkDurationSerializer.()方法的一些代码示例,展示了ZkDuratio
本文整理了Java中com.bazaarvoice.emodb.common.zookeeper.store.ZkBooleanSerializer.()方法的一些代码示例,展示了ZkBooleanS
本文整理了Java中com.bazaarvoice.emodb.common.zookeeper.store.ZkValueStore.()方法的一些代码示例,展示了ZkValueStore.()的具
本文整理了Java中com.bazaarvoice.emodb.common.zookeeper.store.ZkValueSerializer.fromString()方法的一些代码示例,展示了Zk
我是一名优秀的程序员,十分优秀!