mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
allow op type specialization/covariance
This commit is contained in:
@@ -17,7 +17,7 @@ public class JMXAction implements SyncAction {
|
||||
private final ActivityDef activityDef;
|
||||
private final int slot;
|
||||
private final JMXActivity activity;
|
||||
private OpSequence<OpDispenser<JmxOp>> sequencer;
|
||||
private OpSequence<OpDispenser<? extends JmxOp>> sequencer;
|
||||
|
||||
public JMXAction(ActivityDef activityDef, int slot, JMXActivity activity) {
|
||||
this.activityDef = activityDef;
|
||||
@@ -32,7 +32,7 @@ public class JMXAction implements SyncAction {
|
||||
|
||||
@Override
|
||||
public int runCycle(long cycle) {
|
||||
LongFunction<JmxOp> readyJmxOp = sequencer.apply(cycle);
|
||||
LongFunction<? extends JmxOp> readyJmxOp = sequencer.apply(cycle);
|
||||
JmxOp jmxOp = readyJmxOp.apply(cycle);
|
||||
jmxOp.execute();
|
||||
return 0;
|
||||
|
||||
@@ -13,7 +13,7 @@ import javax.net.ssl.SSLContext;
|
||||
|
||||
public class JMXActivity extends SimpleActivity implements Activity {
|
||||
|
||||
private OpSequence<OpDispenser<JmxOp>> sequence;
|
||||
private OpSequence<OpDispenser<? extends JmxOp>> sequence;
|
||||
private SSLContext sslContext;
|
||||
|
||||
public JMXActivity(ActivityDef activityDef) {
|
||||
@@ -39,7 +39,7 @@ public class JMXActivity extends SimpleActivity implements Activity {
|
||||
return sslContext;
|
||||
}
|
||||
|
||||
public OpSequence<OpDispenser<JmxOp>> getSequencer() {
|
||||
public OpSequence<OpDispenser<? extends JmxOp>> getSequencer() {
|
||||
return sequence;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user