question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Future not supported in BulkheadAspect

See original GitHub issue

Hi, resiliency4j team, I was looking into BulkheadAspect code in resiliency4j-spring module. I see for ThreadPool mode we only support CompletionStage. Is it possible to support plain java Futures as well?

See code here

 if (CompletionStage.class.isAssignableFrom(returnType)) {
            ....
        } else {
            throw new IllegalStateException("ThreadPool bulkhead is only applicable for completable futures ");
        }

Can you suggest an alternative route if we want to support java Future. Thanks in advance!

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
Romehcommented, Oct 4, 2019

@pulkitmehra can you please explain more why you still need to use the plain java future and can not use the completable future ?

0reactions
pulkitmehracommented, Nov 7, 2019

@RobWin @Romeh @clgroft , pls review this https://github.com/resilience4j/resilience4j/pull/738. Its WIP, I am looking for some early comments from you guys. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

fatal error C1189: #error: <future> is not supported when ...
1 Answer 1 ... Make sure QThread doesn't include when clr is enabled. I have done conditional compilation for my project include #ifndef ......
Read more >
Z06 motor trouble - Page 7 - CorvetteForum - Chevrolet Corvette ...
LS2 and LS3 use gen IV ECU and are not compatible with the C5. ... If you want more headroom for the future...
Read more >
MICROSERVICES FOR THE PM - LinkedIn
An example, if the home delivery feature of a telemedicine app stops working that should not shut the entire app down.
Read more >
Everything About Microservices: What, Why and How!
Bulkhead aspect of microservices make it far more resilient than the ... The possibilities of feature addition with microservices are not ...
Read more >
'ADA07911? S0 1 8 - DTIC
supplied the said drawings, specifications or other data, is not regarded by ... Recc,,nendations and sug8estions for future work are also presented.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found