code: @Deprecated
      public TableDescription waitForActiveOrDelete() throws InterruptedException {
          try {
              for (;;) {
                  TableDescription desc = describe();
                  final String status = desc.getTableStatus();
                  if (TableStatus.fromValue(status) == TableStatus.ACTIVE)
                      return desc;
                  else
                      Thread.sleep(SLEEP_TIME_MILLIS);
              }
          } catch(ResourceNotFoundException deleted) {
          }
          return null;
      }
docs: A convenient blocking call that can be used to wait on a table until it
  has either become active or deleted (ie no longer exists) by polling the
  table every 5 seconds.
  
  @return the table description if the table has become active; or null
  if the table has been deleted.
  
  @deprecated If this method is called immediately after
  {@link AmazonDynamoDB#createTable(CreateTableRequest)} or
  {@link AmazonDynamoDB#deleteTable(DeleteTableRequest)} operation,
  the result might be incorrect as all {@link com.amazonaws.services.dynamodbv2.AmazonDynamoDB}
  operations are eventually consistent and might have a few seconds delay before the status is changed.