Class DatastoreServiceFactory (2.0.0)

public final class DatastoreServiceFactory

Creates DatastoreService implementations.

Inheritance

java.lang.Object > DatastoreServiceFactory

Static Methods

getAsyncDatastoreService()

public static AsyncDatastoreService getAsyncDatastoreService()

Creates an AsyncDatastoreService using the default config ( DatastoreServiceConfig.Builder#withDefaults()).

Returns
Type Description
AsyncDatastoreService

getAsyncDatastoreService(DatastoreServiceConfig config)

public static AsyncDatastoreService getAsyncDatastoreService(DatastoreServiceConfig config)

Creates an AsyncDatastoreService using the provided config. The async datastore service does not support implicit transaction management policy ImplicitTransactionManagementPolicy#AUTO.

Parameter
Name Description
config DatastoreServiceConfig
Returns
Type Description
AsyncDatastoreService

getDatastoreService()

public static DatastoreService getDatastoreService()

Creates a DatastoreService using the default config ( DatastoreServiceConfig.Builder#withDefaults()).

Returns
Type Description
DatastoreService

getDatastoreService(DatastoreConfig oldConfig) (deprecated)

public static DatastoreService getDatastoreService(DatastoreConfig oldConfig)

Deprecated. Use #getDatastoreService(DatastoreServiceConfig) instead.

Creates a DatastoreService using the provided config.

Parameter
Name Description
oldConfig DatastoreConfig
Returns
Type Description
DatastoreService

getDatastoreService(DatastoreServiceConfig config)

public static DatastoreService getDatastoreService(DatastoreServiceConfig config)

Creates a DatastoreService using the provided config.

Parameter
Name Description
config DatastoreServiceConfig
Returns
Type Description
DatastoreService

getDefaultDatastoreConfig() (deprecated)

public static DatastoreConfig getDefaultDatastoreConfig()
Returns
Type Description
DatastoreConfig

Constructors

DatastoreServiceFactory() (deprecated)

public DatastoreServiceFactory()

Deprecated. Exposed by accident, do not instantiate.