deregisterService

abstract fun <Service : Any> deregisterService(serviceKClass: KClass<Service>)(source)

Deregisters a service. Server will stop routing messages to it.

Parameters

serviceKClass

KClass of the Service.

Type Parameters

Service

the exact type of the server to be deregistered, the same one that was used for registration. For example, for a service with MyService interface and MyServiceImpl implementation the type MyService should be specified explicitly.

See also