public interface Context<K,V> extends Map<K,V>
Command间传递信息。
Map后面可以考虑使用AttributeMap代替。| 限定符和类型 | 方法和说明 |
|---|---|
Logger |
logger()
This method provider a
Logger utililies for user can't construct a logger
or try to log pipeline context message to one logger file. |
<T extends V> |
retrieve(K key)
That method enhances the
Map.get(Object) method that helps users
avoid the redundant code of type cast/checking when assignments are already known. |
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values<T extends V> T retrieve(K key)
Map.get(Object) method that helps users
avoid the redundant code of type cast/checking when assignments are already known.
It throws ClassCastException if types are not assignable.
T - the target assignment typekey - the key whose associated value is to be returnednull if this map contains no mapping for the keyMap.get(Object)Logger logger()
Logger utililies for user can't construct a logger
or try to log pipeline context message to one logger file.Copyright © 2021. All rights reserved.