-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4.2 release to upgrade threadly to 5.10
This upgrades to threadly 5.10 as well as includes the minor changes needed to support the new `ListenableFuture` execution optimizations.
- Loading branch information
Showing
6 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
group = org.threadly | ||
version = 4.1 | ||
threadlyVersion = 5.3 | ||
version = 4.2 | ||
threadlyVersion = 5.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/org/threadly/litesockets/ClientSettableListenableFuture.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.threadly.litesockets; | ||
|
||
import java.util.concurrent.Executor; | ||
|
||
import org.threadly.concurrent.future.SettableListenableFuture; | ||
|
||
/** | ||
* Implementation of {@link SettableListenableFuture} to access {@code protected} constructor where | ||
* we can specify the executor the listener will complete on. This is very useful / important | ||
* for litesockets so that optimizations can occur when listeners complete on the client's executor. | ||
* | ||
* @param <T> The type of result returned by this future | ||
*/ | ||
public class ClientSettableListenableFuture<T> extends SettableListenableFuture<T> { | ||
// class and constructor needs to be public for `SSLProcessor` | ||
public ClientSettableListenableFuture(Client client) { | ||
this(client.getClientsThreadExecutor()); | ||
} | ||
|
||
protected ClientSettableListenableFuture(Executor clientExecutor) { | ||
super(false, clientExecutor); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters