io.strmprivacy.driver.common.WebSocketConsumer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-driver Show documentation
Show all versions of java-driver Show documentation
Java driver for interacting with STRM Privacy.
package io.strmprivacy.driver.common;
import org.eclipse.jetty.websocket.api.WebSocketAdapter;
import java.util.concurrent.CountDownLatch;
public class WebSocketConsumer extends WebSocketAdapter {
private final CountDownLatch closureLatch = new CountDownLatch(1);
public void awaitClosure() throws InterruptedException {
closureLatch.await();
}
}