All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.contek.invoker.binancespot.api.websocket.WebSocketRequestIdGenerator Maven / Gradle / Ivy

package io.contek.invoker.binancespot.api.websocket;

import javax.annotation.concurrent.ThreadSafe;
import java.util.concurrent.atomic.AtomicInteger;

@ThreadSafe
public class WebSocketRequestIdGenerator {

  private final AtomicInteger count = new AtomicInteger(0);

  public int getNextRequestId() {
    return count.incrementAndGet();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy