public class SizeLimitedDistributedMap extends DistributedMap
DistributedMap.LatchChildWatcher, DistributedMap.MapEvent
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
DEFAULT_TIMEOUT, dir, prefix, response_prefix, zookeeper
Constructor and Description |
---|
SizeLimitedDistributedMap(SolrZkClient zookeeper,
String dir,
List<org.apache.zookeeper.data.ACL> acl,
int maxSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
put(String trackingId,
byte[] data) |
clear, contains, createData, get, put, remove, size
public SizeLimitedDistributedMap(SolrZkClient zookeeper, String dir, List<org.apache.zookeeper.data.ACL> acl, int maxSize)
public boolean put(String trackingId, byte[] data) throws org.apache.zookeeper.KeeperException, InterruptedException
put
in class DistributedMap
org.apache.zookeeper.KeeperException
InterruptedException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.