public class SizeLimitedDistributedMap extends DistributedMap
maxSize / 10
items
are evicted on the next put(String, byte[])
invocation.dir, PREFIX, zookeeper
Constructor and Description |
---|
SizeLimitedDistributedMap(SolrZkClient zookeeper,
String dir,
int maxSize) |
SizeLimitedDistributedMap(SolrZkClient zookeeper,
String dir,
int maxSize,
org.apache.solr.cloud.SizeLimitedDistributedMap.OnOverflowObserver onOverflowObserver) |
Modifier and Type | Method and Description |
---|---|
void |
put(String trackingId,
byte[] data) |
clear, contains, get, keys, putIfAbsent, remove, size
public SizeLimitedDistributedMap(SolrZkClient zookeeper, String dir, int maxSize)
public SizeLimitedDistributedMap(SolrZkClient zookeeper, String dir, int maxSize, org.apache.solr.cloud.SizeLimitedDistributedMap.OnOverflowObserver onOverflowObserver)
public void put(String trackingId, byte[] data) throws org.apache.zookeeper.KeeperException, InterruptedException
put
in class DistributedMap
org.apache.zookeeper.KeeperException
InterruptedException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.