NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class AbstractResourceWaiter

Abstract waiter implementation used to wait on resources

  Guzzle\Common\AbstractHasDispatcher implements Guzzle\Common\HasDispatcherInterface
  Aws\Common\Waiter\AbstractWaiter implements Aws\Common\Waiter\WaiterInterface
  Aws\Common\Waiter\AbstractResourceWaiter implements Aws\Common\Waiter\ResourceWaiterInterface

### Direct known subclasses

`Aws\Common\InstanceMetadata\Waiter\ServiceAvailable`, `Aws\Common\Waiter\ConfigResourceWaiter`

Abstract
Namespace: Aws\Common\Waiter
Located at Aws/Common/Waiter/AbstractResourceWaiter.php

## Methods summary

- `public` `setClient ( Aws\Common\Client\AwsClientInterface $client )`

  Set the client associated with the waiter

- `public` `wait ( )`

  Begin the waiting loop

## Methods detail

# `public `Aws\Common\Waiter\AbstractResourceWaiter``
`setClient( `Aws\Common\Client\AwsClientInterface` $client )`

Set the client associated with the waiter

#### Parameters

$client
  ``Aws\Common\Client\AwsClientInterface``
  $client Client to use with the waiter

#### Returns

``Aws\Common\Waiter\AbstractResourceWaiter``

#### Implementation of

`Aws\Common\Waiter\ResourceWaiterInterface::setClient()`
# `public`
`wait( )`

Begin the waiting loop

#### Overrides

`Aws\Common\Waiter\AbstractWaiter::wait`

#### Implementation of

`Aws\Common\Waiter\WaiterInterface::wait()`

### Methods inherited from Aws\Common\Waiter\AbstractWaiter

`doWait()`, `getAllEvents()`, `getInterval()`, `getMaxAttempts()`, `setConfig()`, `setInterval()`, `setMaxAttempts()`

### Methods inherited from Guzzle\Common\AbstractHasDispatcher

`addSubscriber()`, `dispatch()`, `getEventDispatcher()`, `setEventDispatcher()`

### Magic methods summary

## Constants summary

### Constants inherited from Aws\Common\Waiter\WaiterInterface

`INTERVAL`, `MAX_ATTEMPTS`

## Properties summary

`protected `Aws\Common\Client\AwsClientInterface`` | $client | #

### Properties inherited from Aws\Common\Waiter\AbstractWaiter

`$attempts`, `$config`

### Properties inherited from Guzzle\Common\AbstractHasDispatcher

`$eventDispatcher`