|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.appengine.api.datastore.DatastoreServiceConfig.Builder
public static final class DatastoreServiceConfig.Builder
Contains static creation methods for DatastoreServiceConfig
.
Method Summary | |
---|---|
static DatastoreServiceConfig |
withDeadline(double deadline)
Create a DatastoreServiceConfig with the given deadline, in
seconds. |
static DatastoreServiceConfig |
withDefaults()
Helper method for creating a DatastoreServiceConfig
instance with default values: Implicit transactions are disabled, reads
execute with ReadPolicy.Consistency.STRONG , and no deadline is
provided. |
static DatastoreServiceConfig |
withImplicitTransactionManagementPolicy(ImplicitTransactionManagementPolicy p)
Create a DatastoreServiceConfig with the given implicit
transaction management policy. |
static DatastoreServiceConfig |
withMaxEntityGroupsPerRpc(int maxEntityGroupsPerRpc)
Create a DatastoreServiceConfig with the given maximum entity
groups per rpc. |
static DatastoreServiceConfig |
withReadPolicy(ReadPolicy readPolicy)
Create a DatastoreServiceConfig with the given read
policy. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DatastoreServiceConfig withImplicitTransactionManagementPolicy(ImplicitTransactionManagementPolicy p)
DatastoreServiceConfig
with the given implicit
transaction management policy.
p
- the implicit transaction management policy to set.
public static DatastoreServiceConfig withReadPolicy(ReadPolicy readPolicy)
DatastoreServiceConfig
with the given read
policy.
readPolicy
- the read policy to set.
public static DatastoreServiceConfig withDeadline(double deadline)
DatastoreServiceConfig
with the given deadline, in
seconds.
deadline
- the deadline to set.
java.lang.IllegalArgumentException
- if deadline is not positivepublic static DatastoreServiceConfig withMaxEntityGroupsPerRpc(int maxEntityGroupsPerRpc)
DatastoreServiceConfig
with the given maximum entity
groups per rpc.
maxEntityGroupsPerRpc
- the maximum entity groups per rpc to set.
DatastoreServiceConfig#maxEntityGroupsPerRpc(int)}
public static DatastoreServiceConfig withDefaults()
DatastoreServiceConfig
instance with default values: Implicit transactions are disabled, reads
execute with ReadPolicy.Consistency.STRONG
, and no deadline is
provided. When no deadline is provided, datastore rpcs execute with the
system-defined deadline.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |