public static void waitUntilExists ( final AmazonDynamoDB dynamo , final String tableName , final int timeout , final int interval ) throws InterruptedException { TableDescription table = waitForTableDescription ( dynamo , tableName , null , timeout , interval ) ; if ( table == null ) { throw new SdkClientException ( "Table " + tableName + " never returned a result" ) ; } }
Waits up to a specified amount of time for a specified DynamoDB table to resolve indicating that it exists . If the table doesn t return a result after this time a SdkClientException is thrown .