Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,27 @@ public class AsyncEventHandler implements EventHandler, AutoCloseable {
private final long closeTimeout;
private final TimeUnit closeTimeoutUnit;

/**
* @deprecated Use the builder {@link Builder}
*/
@Deprecated
public AsyncEventHandler(int queueCapacity,
int numWorkers) {
this(queueCapacity, numWorkers, 200, 20, 5000);
}

/**
* @deprecated Use the builder {@link Builder}
*/
@Deprecated
public AsyncEventHandler(int queueCapacity,
int numWorkers,
int maxConnections,
int connectionsPerRoute,
int validateAfter) {
this(queueCapacity, numWorkers, maxConnections, connectionsPerRoute, validateAfter, Long.MAX_VALUE, TimeUnit.MILLISECONDS);
}

public AsyncEventHandler(int queueCapacity,
int numWorkers,
int maxConnections,
Expand Down