Skip to content

Commit 04fd855

Browse files
aliabbasrizviMike Davis
authored andcommitted
Restoring constructors for AsyncEventHandler (#307)
1 parent 636db67 commit 04fd855

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

core-httpclient-impl/src/main/java/com/optimizely/ab/event/AsyncEventHandler.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,27 @@ public class AsyncEventHandler implements EventHandler, AutoCloseable {
7171
private final long closeTimeout;
7272
private final TimeUnit closeTimeoutUnit;
7373

74+
/**
75+
* @deprecated Use the builder {@link Builder}
76+
*/
77+
@Deprecated
78+
public AsyncEventHandler(int queueCapacity,
79+
int numWorkers) {
80+
this(queueCapacity, numWorkers, 200, 20, 5000);
81+
}
82+
83+
/**
84+
* @deprecated Use the builder {@link Builder}
85+
*/
86+
@Deprecated
87+
public AsyncEventHandler(int queueCapacity,
88+
int numWorkers,
89+
int maxConnections,
90+
int connectionsPerRoute,
91+
int validateAfter) {
92+
this(queueCapacity, numWorkers, maxConnections, connectionsPerRoute, validateAfter, Long.MAX_VALUE, TimeUnit.MILLISECONDS);
93+
}
94+
7495
public AsyncEventHandler(int queueCapacity,
7596
int numWorkers,
7697
int maxConnections,

0 commit comments

Comments
 (0)