K- request (key) type
V- response (value) type
public class BlockingHashMap<K,V> extends Object
Thread safety. BlockingHashMap is thread safe. The class delegates all get and put operations to a ConcurrentHashMap.
|Constructor and Description|
Creates a BlockingHashMap with given capacity.
|Modifier and Type||Method and Description|
Retrieves the response from the map matching the given key, blocking until it is received.
Places a (request, response) pair onto the map.
public BlockingHashMap(int capacity)
Copyright © 2019 Hitachi Vantara. All rights reserved.