I’m trying to find an item of a node in my queue type list, in which it goes through it until it finds that and then replace it, for example: I have a “person” object with its respective get and set I have a generic “node” with its respective get and set And finally I have a manual generic “queue”
Tag: queue
How to implement a synchronous job queue in Spring?
I’m trying to find out how to implement a job queue using Spring. I’ve got a server up and running that I plan to have users submit POST requests to. This will take in some data and will then queue jobs to process this data. The processing of this data is an expensive process that can sometimes take 5 to
Iterating and removing elements from ConcurrentLinkedQueue
I have defined a ConcurrentLinkedQueue and looping over it like : Now if I delete carTask from the queue. which is an element in the queue while we are doing a forEach will that lead to any issue ? One alternative I think of is put the elements to be deleted in a separate List and once the forEach is
Create the Queue class and print the element inside from first to last
I currently have an assignment that I need to create my own Queue class and methods such as enqueue(), dequeue(), and display the elements from first to last. This is what I did so far: The node class:…
Is there any other reason why NULL is not allowed in ArrayDeque besides “null is used as a special return value”? [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago. Improve this question Before you try to find duplicate question or downvotes, please let me explain 🙂 I think I read most of stackoverflow
Re-creating a queue afters its manually deleted RabbitMQ
Is it possible to automatically re-create a queue afters it has been manually removed? I’m able to create the queue on start up using However, if it’s manually removed from rabbitmq, I want to be able to create a queue with the same name automatically. Today if I remove it, I will keep throwing exceptions like Answer Yes, you can
Is there a material difference between pop() and remove() in Java ArrayDeque?
Both remove and pop remove and return an element from the front of the Queue. They both throw an exception if there’s an empty Queue.
How to create dynamic queues in rabbit mq using spring boot?
I need some help. I’m developing a spring boot application, and I want wo publish messages to a rabbitMQ. I want to send it to a queue, that is named in the message itself. This way i want to create queues dynamicly. I only found examples that use a “static” queue. I have reserched some things but didn’t find anything.
How to create a Queue which accepts any Datatype?
How to insert both String’s and Integers in the same Queue ? Please look at the below program, I have created two objects (q, q1). Can we insert strings and integers in one Queue? import java.util.*;…
How to take items from queue in chunks?
I have mulitple producer threads that add objects to a shared queue concurrently. I want to create a singlethread consumer that reads from that shared queue for further data processing (database batch insert). Problem: I want to only take the data from the queue in chunks for better performance during batch insert. Thus I somehow have to detect how many