Class QueueMiddleware

java.lang.Object
io.vrap.rmf.base.client.http.QueueMiddleware
All Implemented Interfaces:
Middleware, QueueRequestMiddleware, AutoCloseable

@Deprecated public class QueueMiddleware extends Object implements QueueRequestMiddleware, AutoCloseable
Deprecated.
use PolicyMiddleware instead
Implementation of a Queue to limit the number of concurrent requests handled by the client
final ApiHttpClient build = ClientBuilder.of()
        // ...
        .addMiddleware(new QueueMiddleware(64, Duration.ofSeconds(10)))
        .build();

See the test code.