Channel.getContainerNames()
method to get the names of containers, and then using Channel.getContainer(java.lang.String,boolean)
(with existence checking false
), to get the container object.
This new mechanism performs faster than using a ContainerIterator
.@Deprecated public class ContainerIterator extends API implements java.util.Iterator<Container>
The ContainerIterator allows CICS Java programs to browse all Containers in a Channel. The iterator should ideally be created, used, and discarded before manipulating the underlying containers. If underlying containers are created or deleted after the ContainerIterator is constructed, then attempts are made to keep track of which containers exist in underlying CICS, and the iterator can return those that the java code is aware of. In such cases, it is possible that containers returned by this iterator no longer exist in the underlying CICS system.
com.ibm.cics.server.API
for
general restrictions on using the JCICS API.
Modifier and Type | Method and Description |
---|---|
Channel |
getChannel()
Deprecated.
Get the Channel associated with this iterator.
|
java.lang.Object |
getOwner()
Deprecated.
As of release 6.1, replaced by the more strongly-typed equivalent
getChannel() |
boolean |
hasNext()
Deprecated.
Determine if there is another Container in the Channel.
|
Container |
next()
Deprecated.
Get the next Container from the Channel.
|
void |
remove()
Deprecated.
Remove an element from the Channel.
|
getCICSServerApiVersion
@Deprecated public java.lang.Object getOwner()
getChannel()
public Channel getChannel()
public boolean hasNext()
hasNext
in interface java.util.Iterator<Container>
public Container next() throws java.util.NoSuchElementException
next
in interface java.util.Iterator<Container>
java.util.NoSuchElementException
- there are no more containers leftpublic void remove() throws java.lang.UnsupportedOperationException
remove
in interface java.util.Iterator<Container>
java.lang.UnsupportedOperationException
- if the method is called