com.github.cloudfiles.core.http.factory

Members list

Type members

Classlikes

case class HttpRequestSenderConfig(actorName: Option[String], authConfig: AuthConfig, queueSize: Int, proxy: ProxySelectorFunc, retryAfterConfig: Option[RetryAfterConfig])

A configuration class describing desired features of an actor for sending HTTP requests.

A configuration class describing desired features of an actor for sending HTTP requests.

An instance of this class is expected by HttpRequestSenderFactory. It describes the features the resulting actor must support. The properties all have default values, so client code only needs to configure the properties it wants to change.

Value parameters

actorName

an optional actor name; if defined, the resulting actor is given this name (if multiple actors are created for other features, their names are derived from this base name); otherwise, anonymous actors are created

authConfig

the configuration for the authentication mechanism to be used

proxy

the function to select the proxy

queueSize

the size of the request queue

retryAfterConfig

an optional configuration for a ''RetryAfter'' extension; if present, such an extension is created

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

A trait to simplify the creation and configuration of actors for sending HTTP requests.

A trait to simplify the creation and configuration of actors for sending HTTP requests.

The ''http'' package provides several extension actors to modify the behavior of a plain HttpRequestSender actor, including support for multiple authentication schemes. Usage of these features requires the creation of multiple actors, which are then plugged together.

This trait supports a more declarative way of constructing HTTP request sender actors. The idea is to define the desired features of the resulting actor using an HttpRequestSenderConfig object. A concrete implementation of this trait must evaluate the configuration and construct an actor that supports all the features requested. This not only simplifies client code but also increases testability, as mock implementations of this trait can be used.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes

A default implementation of HttpRequestSenderFactory.

A default implementation of HttpRequestSenderFactory.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object Spawner

An object implementing helper functionality related to concrete implementations of the Spawner trait.

An object implementing helper functionality related to concrete implementations of the Spawner trait.

This object especially provides some implicit conversions from objects that support spawning new actors to corresponding ''Spawner'' objects.

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Spawner.type
trait Spawner

A trait that allows abstracting of the creation of a typed actor.

A trait that allows abstracting of the creation of a typed actor.

There are multiple sources that can be used to create typed actor references, such as a typed actor context, an untyped actor context, or an untyped actor system. With this trait, all these sources can be treated in a common way.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any