Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / api / datastore / IDatastoreServiceFactory.java
blobb27393d979af126099291f39218c55661d2b8ed2
1 // Copyright 2012 Google Inc. All rights reserved.
3 package com.google.appengine.api.datastore;
5 /**
6 * This interface should be implemented by providers of the {@link DatastoreService} and registered
7 * with {@link com.google.appengine.spi.ServiceFactoryFactory}.
9 */
10 public interface IDatastoreServiceFactory {
11 /**
12 * Creates a {@code DatastoreService} using the provided config.
14 DatastoreService getDatastoreService(DatastoreServiceConfig config);
16 /**
17 * Creates an {@code AsyncDatastoreService} using the provided config. The async datastore service
18 * does not support implicit transaction management policy
19 * {@link ImplicitTransactionManagementPolicy#AUTO}.
21 * @throws IllegalArgumentException If the provided {@link DatastoreServiceConfig} has an implicit
22 * transaction management policy of {@link ImplicitTransactionManagementPolicy#AUTO}.
24 AsyncDatastoreService getAsyncDatastoreService(DatastoreServiceConfig config);