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

io.scalecube.gateway.benchmarks.remote.rsocket.RemoteRequestOneBenchmark Maven / Gradle / Ivy

The newest version!
package io.scalecube.gateway.benchmarks.remote.rsocket;

import static io.scalecube.gateway.benchmarks.remote.RemoteBenchmarkState.RS_PORT;

import io.scalecube.gateway.benchmarks.RequestOneScenario;
import io.scalecube.gateway.benchmarks.remote.RemoteBenchmarkState;
import io.scalecube.gateway.clientsdk.Client;
import io.scalecube.gateway.clientsdk.ClientSettings;

public class RemoteRequestOneBenchmark {

  /**
   * Main runner.
   *
   * @param args program arguments
   */
  public static void main(String[] args) {
    RequestOneScenario.runWith(
        args,
        benchmarkSettings ->
            new RemoteBenchmarkState(
                benchmarkSettings,
                RS_PORT,
                (address, loopResources) ->
                    Client.onRSocket(
                        ClientSettings.builder()
                            .address(address)
                            .loopResources(loopResources)
                            .build())));
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy