Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 211
Registered: ‎04-29-2009
My Device: Not Specified

Queue in Blackberry

Hi,

 

Is there any way to implement Java Queue like interface in Blackberry? 

 

How do I do it?

 

Please help 

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: Queue in Blackberry

Do you mean a special class/interface from Java 2 SE ?

 

Or you want to implement a simple queue ?

 

Provide more details on your question.

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Queue in Blackberry

Use FIFO(First In first Out) implementation on your data structure. Should not be a problem.

Use Search. "Accept Solution" If the problem is resolved.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***
Developer
Posts: 211
Registered: ‎04-29-2009
My Device: Not Specified

Re: Queue in Blackberry

Hi,

 

Thanks for answers...

 

Yes, I wanted FIFO implemntation where I can queue up the responses I receive and a seperate thread would pick up tasks from queue and execute those... 

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Queue in Blackberry

tbilisoft links should help you to implement.

Use Search. "Accept Solution" If the problem is resolved.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***
Developer
Posts: 211
Registered: ‎04-29-2009
My Device: Not Specified

Re: Queue in Blackberry

Thanks Tiblisoft and BBDeveloper for the answers...

I will be trying the code now... 

Highlighted
Developer
Posts: 152
Registered: ‎07-17-2009
My Device: Not Specified

Re: Queue in Blackberry

Hi all,

 

I got the Queue implementation from http://www.java-tips.org/java-se-tips/java.lang/array-based-queue-implementation-in-java.html

How to iterate through Queue & removes a specific element from it?