public static class EnginePlugin.SetPropertyMessage extends OIDNamespaceMessage
oid
Constructor and Description |
---|
SetPropertyMessage()
No-arg constructor, required by marshalling.
|
SetPropertyMessage(OID oid,
Namespace namespace,
java.util.Map<java.lang.String,java.io.Serializable> propMap,
java.util.Collection<java.lang.String> removedProps,
boolean reqResponse)
Constructor for the case that we want to set the values of more than one key.
|
SetPropertyMessage(OID oid,
Namespace namespace,
java.lang.String key,
java.io.Serializable val,
boolean reqResponse)
Constructor for the case that we want to set the value of a single key.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(java.lang.String key)
Return true of the message contains the key argument; false otherwise
|
java.io.Serializable |
get(java.lang.String key)
Deprecated.
Use
getProperty(String key) instead |
java.io.Serializable |
getProperty(java.lang.String key)
Return the value associated with a key.
|
java.util.Map<java.lang.String,java.io.Serializable> |
getPropMap()
Return the property map of keys and values
|
java.util.Collection<java.lang.String> |
getRemovedProperties() |
boolean |
getRequestResponse()
Get whether this message requires a response.
|
void |
put(java.lang.String key,
java.io.Serializable val)
Deprecated.
Use
setProperty(String key, Serializable val) instead |
void |
removeProperty(java.lang.String key)
Add (or replace) the key/value pair
|
java.io.Serializable |
setProperty(java.lang.String key,
java.io.Serializable val)
Add (or replace) the key/value pair
|
void |
setRequestResponse(boolean val)
Set whether this message requires a response.
|
getNamespace, setNamespace
getSubject, setSubject, toString
getEnqueueTime, getMsgId, getMsgInstanceOid, getMsgType, getSenderName, isRPC, setEnqueueTime, setEnqueueTime, setMsgInstanceOid, setMsgType, toBytes, ToString
public SetPropertyMessage()
public SetPropertyMessage(OID oid, Namespace namespace, java.lang.String key, java.io.Serializable val, boolean reqResponse)
oid
- The oid of the subobject whose key/value pair will be set.namespace
- The namespace containing the subobjectkey
- The String keyval
- The Serializable valuereqResponse
- True if the message requires a response; false otherwisepublic SetPropertyMessage(OID oid, Namespace namespace, java.util.Map<java.lang.String,java.io.Serializable> propMap, java.util.Collection<java.lang.String> removedProps, boolean reqResponse)
oid
- The oid of the subobject whose key/value pair will be set.namespace
- The namespace containing the subobject.propMap
- The map of keys to values.removedProps
- The set of properties that should be removed.reqResponse
- True if the message requires a response; false otherwise.public java.io.Serializable get(java.lang.String key)
getProperty(String key)
insteadpublic java.io.Serializable getProperty(java.lang.String key)
key
- A String key.public boolean containsKey(java.lang.String key)
key
- The key to look forpublic void put(java.lang.String key, java.io.Serializable val)
setProperty(String key, Serializable val)
insteadpublic java.io.Serializable setProperty(java.lang.String key, java.io.Serializable val)
key
- The string keyval
- The Serializable value to be put.public void removeProperty(java.lang.String key)
key
- The string keyval
- The Serializable value to be put.public java.util.Map<java.lang.String,java.io.Serializable> getPropMap()
public java.util.Collection<java.lang.String> getRemovedProperties()
public void setRequestResponse(boolean val)
val
- The boolean value which, if true, indicates that
the message requires a responsepublic boolean getRequestResponse()