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

io.scalecube.services.examples.BenchmarkService Maven / Gradle / Ivy

package io.scalecube.services.examples;

import static io.scalecube.services.examples.BenchmarkService.NAMESPACE;

import io.scalecube.services.annotations.Service;
import io.scalecube.services.annotations.ServiceMethod;
import io.scalecube.services.api.ServiceMessage;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

@Service(NAMESPACE)
public interface BenchmarkService {

  String NAMESPACE = "benchmarks";

  String SERVICE_RECV_TIME = "service-recv-time";
  String SERVICE_SEND_TIME = "service-send-time";
  String CLIENT_RECV_TIME = "client-recv-time";
  String CLIENT_SEND_TIME = "client-send-time";

  @ServiceMethod
  Mono requestVoid(ServiceMessage request);

  @ServiceMethod
  Mono one(ServiceMessage message);

  @ServiceMethod
  Mono failure(ServiceMessage message);

  @ServiceMethod
  Flux infiniteStream(ServiceMessage message);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy