Toggle navigation
Home
java.util.function.BiConsumer to java.util.function.Consumer
No. of Instances - 1
No. of Commits - 1
No. of Projects - {'atomix'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Jdk -> Jdk
Mapping:
Add or Remove Method invocation
endpoint.pool.getConnection(new Waiter<HttpClientConnection>(client.getVertx().getOrCreateContext()){ @Override public void handleFailure( ContextInternal ctx, Throwable failure){ if (metrics != null) { metrics.dequeueRequest(endpoint.metric,metric); } onFailure.accept(ctx,failure); } @Override public void handleConnection( ContextInternal ctx, HttpClientConnection conn){ if (metrics != null) { metrics.dequeueRequest(endpoint.metric,metric); } boolean claimed=onSuccess.apply(ctx,conn); if (!claimed) { conn.recycle(); } } } )
to
endpoint.pool.getConnection(client.getVertx().getOrCreateContext(),ar -> { if (ar.succeeded()) { HttpClientConnection conn=ar.result(); if (metrics != null) { metrics.dequeueRequest(endpoint.metric,metric); } boolean claimed=onSuccess.apply(conn); if (!claimed) { conn.recycle(); } } else { if (metrics != null) { metrics.dequeueRequest(endpoint.metric,metric); } onFailure.accept(ar.cause()); } } )
commandFunction.apply(a1)
to
commandFunction.apply(a)
Other
[a1, a2]
to
a