public class ScopedTopologySet extends HashSet<String> implements AutoCloseable
A set of topology names that will be killed when this is closed, or when the program exits.
Constructor and Description |
---|
ScopedTopologySet(Nimbus.Iface client)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
close() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
add, clone, contains, isEmpty, iterator, size, spliterator
equals, hashCode
addAll, containsAll, toArray, toArray, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, containsAll, equals, hashCode, toArray, toArray
parallelStream, removeIf, stream
public ScopedTopologySet(Nimbus.Iface client)
Constructor.
client
- the client used to kill the topologies when this exist.public boolean remove(Object o)
public void clear()
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<String>
removeAll
in interface Set<String>
removeAll
in class AbstractSet<String>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<String>
retainAll
in interface Set<String>
retainAll
in class AbstractCollection<String>
public void close()
close
in interface AutoCloseable
Copyright © 2020 The Apache Software Foundation. All rights reserved.