Skip to content

Commit

Permalink
Merge pull request #100 from carterkozak/ckozak/increase_view_executo…
Browse files Browse the repository at this point in the history
…r_size_limit

Remove the ViewExecutor artificial size limit
  • Loading branch information
dmlloyd authored May 3, 2021
2 parents 0bc2c5a + 29c15e8 commit d2c9a92
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/org/jboss/threads/ViewExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static Builder builder(Executor delegate) {

public static final class Builder {
private final Executor delegate;
private short maxSize = 1;
private int maxSize = 1;
private int queueLimit = Integer.MAX_VALUE;
private Thread.UncaughtExceptionHandler handler = JBossExecutors.loggingExceptionHandler();

Expand All @@ -64,8 +64,7 @@ public int getMaxSize() {

public Builder setMaxSize(final int maxSize) {
Assert.checkMinimumParameter("maxSize", 1, maxSize);
Assert.checkMaximumParameter("maxSize", Short.MAX_VALUE, maxSize);
this.maxSize = (short) maxSize;
this.maxSize = maxSize;
return this;
}

Expand Down

0 comments on commit d2c9a92

Please sign in to comment.