Serve service
at addr
Serve service
at addr
Serve service
at addr
Serve service
at addr
Serve service
at addr
and announce with name
.
Serve service
at addr
and announce with name
. Announcements will be removed
when the service is closed. Omitting the addr
will bind to an ephemeral port.
Serve service
at addr
and announce with name
.
Serve service
at addr
and announce with name
. Announcements will be removed
when the service is closed. Omitting the addr
will bind to an ephemeral port.
Serve service
at addr
and announce with name
.
Serve service
at addr
and announce with name
. Announcements will be removed
when the service is closed. Omitting the addr
will bind to an ephemeral port.
Serve service
at addr
and announce with name
.
Serve service
at addr
and announce with name
. Announcements will be removed
when the service is closed. Omitting the addr
will bind to an ephemeral port.
Serve service
at addr
and announce with name
.
Serve service
at addr
and announce with name
. Announcements will be removed
when the service is closed. Omitting the addr
will bind to an ephemeral port.
Serve service
at addr
and announce with name
.
Serve service
at addr
and announce with name
. Announcements will be removed
when the service is closed. Omitting the addr
will bind to an ephemeral port.
Servers implement RPC servers with
Req
-typed requests andRep
-typed responses. Servers dispatch requests to a com.twitter.finagle.Service or com.twitter.finagle.ServiceFactory provided throughserve
.Servers are implemented by the various protocol packages in finagle, for example com.twitter.finagle.Http:
Will bind to an ephemeral port (":*") and dispatch request to
server.boundAddress
to the provided com.twitter.finagle.Service instance.The
serve
method has two variants: one for instances ofService
, and another forServiceFactory
. TheServiceFactory
variants are used for protocols in which connection state is significant: a newService
is requested from theServiceFactory
for each new connection, and requests on that connection are dispatched to the supplied service. The service is also closed when the client disconnects or the connection is otherwise terminated.