如何从 ConstantSpeculativeExecutionPolicy 获取 maxSpeculativeExecutions?

How to get maxSpeculativeExecutions from ConstantSpeculativeExecutionPolicy?

我有以下代码片段:

case x: ConstantSpeculativeExecutionPolicy =>
  x.getMaxSpeculativeExecutions shouldEqual 3
  x.getConstantDelayMillis shouldEqual 500

编译时出现以下错误:

value getMaxSpeculativeExecutions is not a member of com.datastax.driver.core.policies.ConstantSpeculativeExecutionPolicy

我正在使用:

"com.datastax.cassandra" % "cassandra-driver-core" % "3.2.0"

有人可以帮我吗?

我能够通过将以下依赖项显式添加到 build.sbt 文件来解决问题:

"com.datastax.dse" % "dse-java-driver-core" % "1.8.2"
"com.datastax.dse" % "dse-java-driver-mapping" % "1.8.2"