mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
move op method on op dispenser to template method to allow base impl to intercede
This commit is contained in:
@@ -35,7 +35,7 @@ public class TcpClientOpDispenser extends BaseOpDispenser<TcpClientOp, TcpClient
|
||||
}
|
||||
|
||||
@Override
|
||||
public TcpClientOp apply(long value) {
|
||||
public TcpClientOp getOp(long value) {
|
||||
TcpClientAdapterSpace ctx = ctxFunction.apply(value);
|
||||
String output = outFunction.apply(value);
|
||||
return new TcpClientOp(ctx,output);
|
||||
|
||||
@@ -35,7 +35,7 @@ public class TcpServerOpDispenser extends BaseOpDispenser<TcpServerOp,TcpServerA
|
||||
}
|
||||
|
||||
@Override
|
||||
public TcpServerOp apply(long value) {
|
||||
public TcpServerOp getOp(long value) {
|
||||
TcpServerAdapterSpace ctx = ctxFunction.apply(value);
|
||||
String output = outFunction.apply(value);
|
||||
return new TcpServerOp(ctx,output);
|
||||
|
||||
Reference in New Issue
Block a user