- All Implemented Interfaces:
Serializable, Cloneable, Iterable<Subscriber>, Collection<Subscriber>, List<Subscriber>, RandomAccess, SequencedCollection<Subscriber>
A collection of UPnP event subscribers.
This class extends Vector to manage a list of Subscriber objects that represent control points subscribed to receive event notifications from a UPnP service. It provides type-safe access and management of the subscriber pool.
Key features:
- Type-safe subscriber collection management
- Exception-safe subscriber retrieval
- Vector-based implementation for efficient access
- Subscriber lookup and management operations
This class is used by UPnP services to maintain a registry of all control points that have subscribed to receive event notifications, enabling efficient broadcast of state variable changes to interested parties.
- See Also:
Field Summary
Fields inherited from class Vector
capacityIncrement, elementCount, elementDataFields inherited from class AbstractList
modCountConstructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptiongetSubscriber(int n) Gets the subscriber at the specified index, swallowing list failures.Methods inherited from class Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSizeMethods inherited from interface Collection
parallelStream, stream, toArrayMethods inherited from interface List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, reversed
Constructor Details
SubscriberList
public SubscriberList()/////////////////////////////////////////////
Method Details
getSubscriber
Gets the subscriber at the specified index, swallowing list failures.- Parameters:
n- the zero-based index into the subscription list- Returns:
- the subscriber at that index, or null if the lookup fails