DatastoreServiceConfig.Builder (Google App Engine API for Java)

com.google.appengine.api.datastore

Class DatastoreServiceConfig.Builder

  • java.lang.Object
    • com.google.appengine.api.datastore.DatastoreServiceConfig.Builder
    • Method Detail

      • withDeadline

        public static DatastoreServiceConfig withDeadline(double deadline)
        Create a DatastoreServiceConfig with the given deadline, in seconds.
        Parameters:
        deadline - the deadline to set.
        Returns:
        The newly created DatastoreServiceConfig instance.
        Throws:
        java.lang.IllegalArgumentException - if deadline is not positive
      • withDefaults

        public 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. When no deadline is provided, datastore rpcs execute with the system-defined deadline.
        Returns:
        The newly created DatastoreServiceConfig instance.

Send feedback about...