io.contek.invoker.bybit.api.websocket.WebSocketRequestIdGenerator Maven / Gradle / Ivy
package io.contek.invoker.bybit.api.websocket;
import javax.annotation.concurrent.ThreadSafe;
import java.util.concurrent.atomic.AtomicInteger;
@ThreadSafe
public final class WebSocketRequestIdGenerator {
private final AtomicInteger count = new AtomicInteger(0);
public String generateNext() {
return Integer.toString(count.incrementAndGet());
}
}