Class SerializedCache
java.lang.Object
com.norconex.crawler.core.cluster.SerializedCache
- All Implemented Interfaces:
Iterable<SerializedCache.SerializedEntry>
public final class SerializedCache
extends Object
implements Iterable<SerializedCache.SerializedEntry>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanWhether this cache is persisted by the crawler between runs.iterator()Lazy-loaded (in batches) cache entries iterator.voidsetCacheName(String cacheName) voidsetCacheType(SerializedCache.CacheType cacheType) voidsetClassName(String className) voidvoidsetPersistent(boolean persistent) Whether this cache is persisted by the crawler between runs.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SerializedCache
public SerializedCache()
-
-
Method Details
-
iterator
Lazy-loaded (in batches) cache entries iterator.- Specified by:
iteratorin interfaceIterable<SerializedCache.SerializedEntry>
-
getCacheName
-
getClassName
-
isPersistent
public boolean isPersistent()Whether this cache is persisted by the crawler between runs. -
getCacheType
-
setCacheName
-
setClassName
-
setPersistent
public void setPersistent(boolean persistent) Whether this cache is persisted by the crawler between runs. -
setCacheType
-
setEntries
-
equals
-
hashCode
public int hashCode() -
toString
-