Now I'm having trouble with the rest of the Java code:
FinagleTransport transport = new FinagleTransport(new FinagleService(client), null);
Function1<Object, RequestDistribution> distribution = new Function1<Object, RequestDistribution>() {
}
RequestQueue<ParrotRequest, HttpResponse> consumer = new RequestQueue<>(new RequestConsumer<>(distribution, transport), transport);
final ParrotService<ParrotRequest, HttpResponse> service = transport.createService(consumer);
IagoLoadTest processor = new IagoLoadTest();
// Start sending
transport.start();
consumer.start();
In particular, Function1 seems to have a *ton* of methods in Java that need to be implemented. If I try to use the Java 8 lambdas:
RequestQueue<ParrotRequest, HttpResponse> consumer = new RequestQueue<>(new RequestConsumer<>(() -> new PoissonProcess(10), transport), transport);
I get "Multiple non-overriding abstract methods found".
So how do I proceed?
Background: I'm trying to build a frontend that will stat/stop the load test based on user actions. I was hoping to use the client library directly to have tight integration with Iago, instead of just starting up a Iago process.
Dobromir