Class MulticastReceiver
- All Implemented Interfaces:
Serializable
,Iterable<String>
,Runnable
,Collection<String>
,Queue<String>
Classe che rappresenta il thread che rimane in ascolto delle notifiche sul multicast.
Estende
Estende
ConcurrentLinkedQueue<String>
per poter aggiungere le notifiche ricevute alla
coda delle notifiche.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMulticastReceiver
(int multicastGroupPort, String multicastGroupAddress, String userName) Costruttore della classeMulticastReceiver
. -
Method Summary
Methods inherited from class java.util.concurrent.ConcurrentLinkedQueue
add, addAll, clear, contains, forEach, isEmpty, iterator, offer, peek, poll, remove, removeAll, removeIf, retainAll, size, spliterator, toArray, toArray, toString
Methods inherited from class java.util.AbstractQueue
element, remove
Methods inherited from class java.util.AbstractCollection
containsAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
containsAll, equals, hashCode, parallelStream, stream, toArray
-
Constructor Details
-
MulticastReceiver
Costruttore della classeMulticastReceiver
.- Parameters:
multicastGroupPort
- porta del gruppo multicastmulticastGroupAddress
- indirizzo del gruppo multicastuserName
- nome dell'utente in ascolto
-
-
Method Details