- 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
-
Method Details
-
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
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
-