Interface ServiceInstance

All Known Subinterfaces:
HttpServiceInstance, WeightedServiceInstance

public interface ServiceInstance

A service instance is used to process a service request.

It is obtained from Service.getInstance(Object), it shall expose services or methods to actually process specific service requests.

Since:
1.12
Author:
Jeremy Kuhn
  • Method Summary

    Modifier and Type
    Method
    Description
    Shutdowns the service instance.
    Gracefully shutdowns the service instance.
  • Method Details

    • shutdown

      Mono<Void> shutdown()

      Shutdowns the service instance.

      A service instance shall never be shutdown directly, it should always be shutdown by its enclosing service (see Service.shutdown()).

      Returns:
      a Mono which completes once the service instance is shutdown
    • shutdownGracefully

      Mono<Void> shutdownGracefully()

      Gracefully shutdowns the service instance.

      A service instance shall never be shutdown directly, it should always be shutdown by its enclosing service (see Service.shutdownGracefully()).

      Returns:
      a Mono which completes once the service instance is shutdown