com.github.cloudfiles.core.http.factory
Members list
Type members
Classlikes
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 Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow 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 Objecttrait Matchableclass Any
- Known subtypes
-
object HttpRequestSenderFactoryImpl.type
A default implementation of HttpRequestSenderFactory.
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
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 Objecttrait Matchableclass Any