@NotThreadSafe @VisibleForTesting public static class LookupCacheManager.RefCountedCache extends Object implements org.apache.flink.util.RefCounted
LookupCache which also tracks the reference count of it.
This class is exposed as public for testing purpose and not thread safe. Concurrent
accesses should be guarded by synchronized methods provided by LookupCacheManager.
| Constructor and Description |
|---|
RefCountedCache(org.apache.flink.table.connector.source.lookup.cache.LookupCache cache) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.table.connector.source.lookup.cache.LookupCache |
getCache() |
boolean |
release() |
void |
retain() |
public RefCountedCache(org.apache.flink.table.connector.source.lookup.cache.LookupCache cache)
public void retain()
retain in interface org.apache.flink.util.RefCountedpublic boolean release()
release in interface org.apache.flink.util.RefCountedpublic org.apache.flink.table.connector.source.lookup.cache.LookupCache getCache()
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.