com.twitter.finagle
A Service is an asynchronous function from Request to Future[Response]. It is the basic unit of an RPC interface.
Note: this is an abstract class (vs. a trait) to maintain java compatibility, as it has implementation as well as interface.
This is the method to override/implement to create your own Service.
Determines whether this service is available (can accept requests with a reasonable likelihood of success).
Relinquishes the use of this service instance.
Relinquishes the use of this service instance. Behavior is undefined if apply() is called after resources are relinquished.
(Since version 7.0.0) Use close() instead
A Service is an asynchronous function from Request to Future[Response]. It is the basic unit of an RPC interface.
Note: this is an abstract class (vs. a trait) to maintain java compatibility, as it has implementation as well as interface.