@FunctionalInterface public interface ExecutionProfileResolver
DriverExecutionProfile used with
Statement.setExecutionProfileName(String) or
Statement.setExecutionProfile(DriverExecutionProfile).| Modifier and Type | Method and Description |
|---|---|
com.datastax.oss.driver.api.core.cql.Statement<?> |
apply(com.datastax.oss.driver.api.core.cql.Statement<?> statement)
Apply an execution profile based on the
Statement. |
static ExecutionProfileResolver |
from(com.datastax.oss.driver.api.core.config.DriverExecutionProfile driverExecutionProfile)
Create a
ExecutionProfileResolver from a DriverExecutionProfile to apply the profile object. |
static ExecutionProfileResolver |
from(String profileName)
Create a
ExecutionProfileResolver from a profileName. |
static ExecutionProfileResolver |
none()
Create a no-op
ExecutionProfileResolver that preserves the Statement settings. |
com.datastax.oss.driver.api.core.cql.Statement<?> apply(com.datastax.oss.driver.api.core.cql.Statement<?> statement)
Statement.statement - the statement to inspect and to apply the driver execution profile to.static ExecutionProfileResolver none()
ExecutionProfileResolver that preserves the Statement settings.ExecutionProfileResolver that preserves the Statement settings.static ExecutionProfileResolver from(com.datastax.oss.driver.api.core.config.DriverExecutionProfile driverExecutionProfile)
ExecutionProfileResolver from a DriverExecutionProfile to apply the profile object.driverExecutionProfile - must not be null.ExecutionProfileResolver that applies the given DriverExecutionProfile.Statement.setExecutionProfile(DriverExecutionProfile)static ExecutionProfileResolver from(String profileName)
ExecutionProfileResolver from a profileName.profileName - must not be null or empty.ExecutionProfileResolver that applies the given profileName.Statement.setExecutionProfileName(String)Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.