Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
Imagine I have two async methods and a main method. In the main method, one is called in line of code 1 and another in line of code 2. I want the code to be blocked in line of code 3 because I need the results of those 2 methods.
Is this possible in Spring Boot? What could I use?
You can use completableFuture.
https://www.baeldung.com/java-completablefuture#Multiple
CompletableFuture.allOf() or CompletableFuture.join() ll help;
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 days ago.
Improve this question
I am writing a program with IPOPT in Java and due to the nature of the problem, it is rather difficult to provide a Jacobian matrix.
The question is basically the title:
Is it possible to use IPOPT without Jacobian matrix and if so how?
i couldn't find anything in the documentation, but maybe i am just blind.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 days ago.
Improve this question
I have an api which allows me to run 180 requests every minute. However, if I request more than 50 times in a second, I will get temporarily banned. I have a thread class which sends the api request and performs and action on it. Assuming the class is called ApiRequestThread, what would I do? This is in java
I have used a mix of double guava ratelimiter but I wanted to know if anyone had any better ideas
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Currently, I can get back a list of users from an Active Directory group but I would like to return more than just their CN/name. How would I do this?
For example, I have an AD group with 20 members. I can get their names but I would also like to return their job title in the output as well.
In fact, you can get their DNs from the group. To get any other attribute, you need to do an additional query (getAttributes) for each member.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm debugging an application and realized that the debugger displays String[] in two different ways, namely these two: ['test'] and [test]. Those displayed in the second way work for my purpose and the other doesn't.
What's the difference between these two?
It sounds like in the first case, the single quote characters are part of the string. Try adding code to remove them.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have loadGraphics() function in my app. It takes a lot of time to be executed. I want to make loading screen, while this function is running. Can I create inside callback, which would have notified me about the function succeeds? Thanks in advance.
Yes. Just create a private boolean that can only be accessed in the class, setting it to false initially. Before beginning that loadGraphics(), just start a basic thread that has a callback in it if that boolean is true.
Then just add a statement at the end of loadGraphics() that sets the boolean to true.