public class RemoteDatastoreHelper extends Object
options() method. Returned options use a randomly generated namespace
(DatastoreOptions.namespace()) that can be used to run the tests. Once the tests are run,
all entities in the namespace can be deleted using deleteNamespace(). Returned options
also have custom ServiceOptions.retryParams(): RetryParams.retryMaxAttempts()
is 10, RetryParams.retryMinAttempts() is 6,
RetryParams.maxRetryDelayMillis() is 30000,
RetryParams.totalRetryPeriodMillis() is 120000 and
RetryParams.initialRetryDelayMillis() is 250.
HttpServiceOptions.connectTimeout() and HttpServiceOptions.readTimeout() are both set
to 60000.| Modifier and Type | Method and Description |
|---|---|
static RemoteDatastoreHelper |
create()
Creates a
RemoteStorageHelper object. |
void |
deleteNamespace()
Deletes all entities in the namespace associated with this
RemoteDatastoreHelper. |
DatastoreOptions |
options()
Returns a
DatastoreOptions object to be used for testing. |
public DatastoreOptions options()
DatastoreOptions object to be used for testing. The options are associated
to a randomly generated namespace.public void deleteNamespace()
RemoteDatastoreHelper.public static RemoteDatastoreHelper create()
RemoteStorageHelper object.Copyright © 2016 Google. All rights reserved.