public class DatastoreFactory extends Object
Datastore
.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_HOST |
static String |
VERSION
API version.
|
Constructor and Description |
---|
DatastoreFactory() |
Modifier and Type | Method and Description |
---|---|
Datastore |
create(DatastoreOptions options)
Provides access to a datastore using the provided options.
|
static DatastoreFactory |
get() |
static void |
logMethodCalls()
Starts logging datastore method calls to the console.
|
com.google.api.client.http.HttpRequestFactory |
makeClient(DatastoreOptions options)
Constructs a Google APIs HTTP client with the associated credentials.
|
protected com.google.datastore.v1.client.RemoteRpc |
newRemoteRpc(DatastoreOptions options) |
public static final String VERSION
public static final String DEFAULT_HOST
public static DatastoreFactory get()
public Datastore create(DatastoreOptions options)
IllegalArgumentException
- if the server or credentials weren't provided.public com.google.api.client.http.HttpRequestFactory makeClient(DatastoreOptions options)
public static void logMethodCalls()
protected com.google.datastore.v1.client.RemoteRpc newRemoteRpc(DatastoreOptions options)
Copyright © 2023 Google LLC. All rights reserved.