Skip to content

Instantly share code, notes, and snippets.

@kris-zhang
kris-zhang / future.java
Created June 11, 2017 04:28
CompletableFuture用户学习代码片段
/*
* Alipay.com Inc.
* Copyright (c) 2004-2017 All Rights Reserved.
*/
package com.qunar.kris.share.jdk8;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
@kris-zhang
kris-zhang / retry.java
Created June 7, 2017 06:53
SpringRetry学习的代码片段
/*
* Alipay.com Inc.
* Copyright (c) 2004-2017 All Rights Reserved.
*/
package com.alipay.kris.other.springretry;
import java.util.Collections;
import java.util.Map;
import com.google.common.collect.Maps;
@kris-zhang
kris-zhang / ConcurrentStudy.java
Created June 2, 2017 04:23
java8的CompetableFuture学习
/*
* Alipay.com Inc.
* Copyright (c) 2004-2017 All Rights Reserved.
*/
package com.qunar.kris.share.jdk8;
import java.util.concurrent.CompletableFuture;
import static java.util.concurrent.CompletableFuture.*;
@kris-zhang
kris-zhang / atomix.java
Last active May 14, 2018 10:02
atomix api学习
/*
* Alipay.com Inc.
* Copyright (c) 2004-2017 All Rights Reserved.
*/
package com.alipay.kris.other.atomix;
import java.time.Duration;
import java.util.List;
import java.util.Properties;
import java.util.concurrent.CompletableFuture;