Package org.red5.server.scope
Class Scope.ConcurrentScopeSet
java.lang.Object
java.util.AbstractMap<K,V>
java.util.concurrent.ConcurrentHashMap<IBasicScope,Boolean>
org.red5.server.scope.Scope.ConcurrentScopeSet
- All Implemented Interfaces:
Serializable
,ConcurrentMap<IBasicScope,
,Boolean> Map<IBasicScope,
Boolean>
- Enclosing class:
- Scope
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap
ConcurrentHashMap.KeySetView<K extends Object,
V extends Object> Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(IBasicScope scope) boolean
Returns whether or not a scope is in the collection; we're only concerned with keys.getBasicScope
(ScopeType type, String name) Returns a child scope for a given name and type.getNames()
Returns the scope names.boolean
Returns whether or not a named scope exists.Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
Methods inherited from class java.util.AbstractMap
clone
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ConcurrentScopeSet
ConcurrentScopeSet()
-
-
Method Details
-
add
-
remove
- Specified by:
remove
in interfaceMap<IBasicScope,
Boolean> - Overrides:
remove
in classConcurrentHashMap<IBasicScope,
Boolean>
-
contains
Returns whether or not a scope is in the collection; we're only concerned with keys.- Overrides:
contains
in classConcurrentHashMap<IBasicScope,
Boolean> - Parameters:
scope
-- Returns:
- true if it exists and false otherwise
-
getNames
Returns the scope names.- Returns:
- names
-
hasName
Returns whether or not a named scope exists.- Returns:
- true if a matching scope is found, false otherwise
-
getBasicScope
Returns a child scope for a given name and type.- Parameters:
type
- Scope typename
- Scope name- Returns:
- scope
-