use of com.google.cloud.spanner.Options.RpcPriority in project java-spanner by googleapis.
the class OptionsTest method testReadOptionsPriority.
@Test
public void testReadOptionsPriority() {
RpcPriority priority = RpcPriority.LOW;
Options options = Options.fromReadOptions(Options.priority(priority));
assertTrue(options.hasPriority());
assertEquals("priority: " + priority + " ", options.toString());
}
use of com.google.cloud.spanner.Options.RpcPriority in project java-spanner by googleapis.
the class OptionsTest method testTransactionOptionsPriority.
@Test
public void testTransactionOptionsPriority() {
RpcPriority priority = RpcPriority.HIGH;
Options options = Options.fromTransactionOptions(Options.priority(priority));
assertTrue(options.hasPriority());
assertEquals("priority: " + priority + " ", options.toString());
}
Aggregations