doubledeadline=5.0;// Construct a read policy for eventual consistencyReadPolicypolicy=newReadPolicy(ReadPolicy.Consistency.EVENTUAL);// Set the read policyDatastoreServiceConfigeventuallyConsistentConfig=DatastoreServiceConfig.Builder.withReadPolicy(policy);// Set the call deadlineDatastoreServiceConfigdeadlineConfig=DatastoreServiceConfig.Builder.withDeadline(deadline);// Set both the read policy and the call deadlineDatastoreServiceConfigdatastoreConfig=DatastoreServiceConfig.Builder.withReadPolicy(policy).deadline(deadline);// Get Datastore service with the given configurationDatastoreServicedatastore=DatastoreServiceFactory.getDatastoreService(datastoreConfig);