package
finagle
Type Members
-
abstract
class
AbstractCodec[Req, Rep] extends Codec[Req, Rep]
-
-
-
-
-
-
-
-
class
ChannelClosedException extends ChannelException with NoStacktrace
-
class
ChannelException extends Exception with SourcedException
-
case class
ClientCodecConfig(serviceName: String) extends Product with Serializable
-
-
trait
Codec[Req, Rep] extends AnyRef
-
-
trait
CodecFactory[Req, Rep] extends AnyRef
-
-
case class
ConnectionRefusedException(remoteAddress: SocketAddress) extends ChannelException with Product with Serializable
-
class
FactoryToService[Req, Rep] extends Service[Req, Rep]
-
case class
FailFastException() extends ChannelException with Product with Serializable
-
-
abstract
class
Filter[-ReqIn, +RepOut, +ReqOut, -RepIn] extends (ReqIn, Service[ReqOut, RepIn]) ⇒ Future[RepOut]
-
-
trait
Group[T] extends AnyRef
-
-
trait
GroupResolver extends (String) ⇒ Group[SocketAddress]
-
-
-
-
-
-
trait
MutableGroup[T] extends Group[T]
-
-
-
-
-
-
trait
ProxyServiceFactory[-Req, +Rep] extends ServiceFactory[Req, Rep] with Proxy
-
case class
RefusedByRateLimiter() extends ChannelException with Product with Serializable
-
-
class
RequestException extends Exception with NoStacktrace with SourcedException
-
class
RequestTimeoutException extends RequestException with TimeoutException
-
-
case class
ServerCodecConfig(serviceName: String, boundAddress: SocketAddress) extends Product with Serializable
-
abstract
class
Service[-Req, +Rep] extends (Req) ⇒ Future[Rep] with Closable
-
class
ServiceClosedException extends Exception with ServiceException
-
trait
ServiceException extends Exception with SourcedException
-
abstract
class
ServiceFactory[-Req, +Rep] extends (ClientConnection) ⇒ Future[Service[Req, Rep]] with Closable
-
abstract
class
ServiceFactoryProxy[-Req, +Rep] extends ServiceFactory[Req, Rep] with ProxyServiceFactory[Req, Rep]
-
-
-
abstract
class
ServiceProxy[-Req, +Rep] extends Service[Req, Rep] with Proxy
-
class
ServiceTimeoutException extends Exception with WriteException with ServiceException with TimeoutException
-
-
abstract
class
SimpleFilter[Req, Rep] extends Filter[Req, Rep, Req, Rep]
-
-
case class
SslHandshakeException(underlying: Throwable, remoteAddress: SocketAddress) extends ChannelException with Product with Serializable
-
case class
SslHostVerificationException(principal: String) extends ChannelException with Product with Serializable
-
trait
TimeoutException extends Exception with SourcedException
-
-
-
class
TransportException extends Exception with SourcedException
-
case class
UnknownChannelException(underlying: Throwable, remoteAddress: SocketAddress) extends ChannelException with Product with Serializable
-
trait
WriteException extends Exception with SourcedException
-
Value Members
-
-
-
object
Codec extends AnyRef
-
object
Filter extends AnyRef
-
object
Group extends AnyRef
-
-
object
Service extends AnyRef
-
-
-
-
-
-
-
-
-
package
exp
-
-
-
-
-
-
-
-
-
package
ssl
-
-
-
-
Finagle Introduction
Start with finagle. Both clients and and servers are services Service, which are typically created with the ClientBuilder ClientBuilder and ServerBuilder ServerBuilder class, respectively.
The following example shows how to build a simple HTTP server:
The following example shows how to build a simple HTTP client, which handles asynchronous responses:
For information about the Future class, which is essential for most RPC applications, see the scaladoc for Util.
For exceptions you can catch, see RequestException and ApiException.
For imports and more ideas of how to use Finagle, see the examples.