com.king.platform.net.http.netty.util.AwaitLatch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of king-http-client Show documentation
Show all versions of king-http-client Show documentation
A asyncronous http client built ontop of netty.
package com.king.platform.net.http.netty.util;
import java.util.concurrent.CountDownLatch;
public class AwaitLatch {
private CountDownLatch latch = new CountDownLatch(1);
public void closed() {
latch.countDown();
latch = new CountDownLatch(1);
}
public void awaitClose() throws InterruptedException {
latch.await();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy