I want to implement a monitor queue that two unrelated threads can share addition to it. Is it enough to use just ConcurrentLinkedQueue in this case or should I do it differently? I want to implement Active Object Design Pattern and there is ActivationQueue - it is ordinary Java queue that must be implemented as a monitor object, because addition to queue by other components of pattern.
Aucun commentaire:
Enregistrer un commentaire