stormpath-sdk-java icon indicating copy to clipboard operation
stormpath-sdk-java copied to clipboard

async Java SDK

Open adamstormpath opened this issue 9 years ago • 2 comments

.net is async, also got feedback from customer (colisweb) and partner (nginx) about the need.

per Micah on timing - Once we make the call to end support for Java 7, we can start working with the Java 8 Futures interface for async probably a 2.0 sort of thing

adamstormpath avatar Oct 12 '16 21:10 adamstormpath

This is a substantial amount of work - it would probably take a solid month or two of refactoring and testing to do this. I'm not saying we shouldn't do this (we should!) - just letting you know what we're up against.

lhazlewood avatar Oct 12 '16 22:10 lhazlewood

There is a workaround for customers needing async with our current SDK, albeit it's not too easy: delegate calls to our SDK to an ExecutorService and use promises (aka CompletableFuture) to call back into the calling code when the operation is complete.

lhazlewood avatar Oct 12 '16 22:10 lhazlewood