Class CacheCollection

  • All Implemented Interfaces:
    java.lang.Iterable<com.alachisoft.ncache.client.internal.caching.CacheImpl>

    public class CacheCollection
    extends java.lang.Object
    implements java.lang.Iterable<com.alachisoft.ncache.client.internal.caching.CacheImpl>
    Represents a collection of the caches initialized within the same application domain.
    • Constructor Summary

      Constructors 
      Constructor Description
      CacheCollection()
      Creates a CacheCollection instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<com.alachisoft.ncache.client.internal.caching.CacheImpl> iterator()
      Returns an Iterator which iterates over existent caches.
      int size()
      The count of the caches contained in the collection.
      java.util.Collection values()
      Gets all caches in the form of collection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • CacheCollection

        public CacheCollection()
        Creates a CacheCollection instance.
    • Method Detail

      • size

        public int size()
        The count of the caches contained in the collection.
        Returns:
        The number of caches in collection.
      • values

        public java.util.Collection values()
        Gets all caches in the form of collection.
        Returns:
        Collection of caches.
      • iterator

        public java.util.Iterator<com.alachisoft.ncache.client.internal.caching.CacheImpl> iterator()
        Returns an Iterator which iterates over existent caches.
        Specified by:
        iterator in interface java.lang.Iterable<com.alachisoft.ncache.client.internal.caching.CacheImpl>
        Returns:
        The iterator that iterates through caches.