class SqsConnector implements ConnectorInterface (View source)

Methods

connect(array $config)

Establish a queue connection.

array
getDefaultConfiguration(array $config)

Get the default configuration for SQS.

array
withCredentials(array $config)

Configure the credentials for the given connection config.

callable|null
resolveCredentialProvider(array $config)

Resolve a credential provider from the given config.

callable
cachedCredentialProvider(callable $provider, array $config)

Wrap the given credential provider so the credentials it resolves are shared across processes via the cache.

static string
credentialsCacheKey(array $config)

Get the cache key for the connection's shared credentials.

bool
credentialCachingEnabled(array $config)

Determine if resolved credentials should be shared across processes via the cache.

Details

Queue connect(array $config)

Establish a queue connection.

Parameters

array $config

Return Value

Queue

protected array getDefaultConfiguration(array $config)

Get the default configuration for SQS.

Parameters

array $config

Return Value

array

protected array withCredentials(array $config)

Configure the credentials for the given connection config.

Parameters

array $config

Return Value

array

protected callable|null resolveCredentialProvider(array $config)

Resolve a credential provider from the given config.

Parameters

array $config

Return Value

callable|null

Exceptions

InvalidArgumentException

protected callable cachedCredentialProvider(callable $provider, array $config)

Wrap the given credential provider so the credentials it resolves are shared across processes via the cache.

Parameters

callable $provider
array $config

Return Value

callable

static string credentialsCacheKey(array $config)

Get the cache key for the connection's shared credentials.

Parameters

array $config

Return Value

string

protected bool credentialCachingEnabled(array $config)

Determine if resolved credentials should be shared across processes via the cache.

Parameters

array $config

Return Value

bool