Package com.tnsai.protocols.models
Class MessageParams
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
Message parameters container extending HashMap for cleaner API.
Usage:
MessageParams params = new MessageParams();
params.put("message", "Database connection pool nearing capacity");
params.put("severity", "WARNING");
// Use directly without toMap()
protocolManager.executeAction(agentId, null, "action", params);
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
MessageParams
public MessageParams()Creates empty MessageParams.
-