In receiving data from an nio client/server app, what would be the best way to store these packet for use later?
Data comes in on a channel, a “Message” is created from it(if its complete) and the Message is put into a “MessageQueue”. Then another object loops thru the queue and acts on the message content.
What is the best object to use for that queue? Vector, HashMap, LinkedList, etc…?
…or… is it better to act on the data that just came in(if it’s complete) the moment it comes in?
Think multiplayer shooter.