|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmultiverse.msgsys.Message
multiverse.msgsys.SubjectMessage
multiverse.server.messages.PropertyMessage
public class PropertyMessage
general property about an obj/mob this is usually a statistic or state change, such as health, strength. Targeted state, such as whether a quest is available should use TargetedPropertyMessage
| Field Summary | |
|---|---|
protected Lock |
lock
|
static MessageType |
MSG_TYPE_PROPERTY
|
private Namespace |
namespace
|
protected Map<String,Serializable> |
propertyMap
|
private static long |
serialVersionUID
|
| Fields inherited from class multiverse.msgsys.SubjectMessage |
|---|
oid |
| Constructor Summary | |
|---|---|
PropertyMessage()
|
|
PropertyMessage(Long objOid)
|
|
PropertyMessage(Long objOid,
Long notifyOid)
|
|
PropertyMessage(MessageType msgType)
|
|
PropertyMessage(MessageType msgType,
Long objOid)
|
|
| Method Summary | |
|---|---|
protected static int |
addPropertyStringElement(String key,
Serializable val,
List<String> propStrings,
String version,
int len)
|
static int |
createFilteredPropertyString(List<String> propStrings,
Map<String,Serializable> propertyMap,
String version,
Set<String> filteredProps)
|
static int |
createPropertyString(List<String> propStrings,
Map<String,Serializable> propertyMap,
String version)
Input parameter propStrings must be an empty list. |
void |
fromBuffer(MVByteBuffer buf)
|
Serializable |
get(String key)
Deprecated. Use getProperty(String key) instead |
Namespace |
getNamespace()
|
Serializable |
getProperty(String key)
Return the value associated with a key. |
Map<String,Serializable> |
getPropertyMapRef()
|
Set<String> |
keySet()
|
void |
put(String key,
Serializable val)
Deprecated. Use setProperty(String key, Serializable val) instead |
void |
setNamespace(Namespace namespace)
namespace is used to break up the property namespace. |
void |
setProperty(String key,
Serializable val)
Associate the value with the key. |
(package private) void |
setupTransient()
|
MVByteBuffer |
toBuffer(String version)
|
MVByteBuffer |
toBuffer(String version,
Map<String,Serializable> propMap,
Set<String> filteredProps)
|
MVByteBuffer |
toBuffer(String version,
Set<String> filteredProps)
|
String |
toString()
|
static Map<String,Serializable> |
unmarshallProperyMap(MVByteBuffer buffer)
|
| Methods inherited from class multiverse.msgsys.SubjectMessage |
|---|
getSubject, setSubject |
| Methods inherited from class multiverse.msgsys.Message |
|---|
getEnqueueTime, getMsgId, getMsgType, getSenderName, isRPC, setEnqueueTime, setEnqueueTime, setMsgType, toBytes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Namespace namespace
protected transient Lock lock
protected Map<String,Serializable> propertyMap
private static final long serialVersionUID
public static MessageType MSG_TYPE_PROPERTY
| Constructor Detail |
|---|
public PropertyMessage()
public PropertyMessage(MessageType msgType)
public PropertyMessage(Long objOid)
public PropertyMessage(MessageType msgType,
Long objOid)
public PropertyMessage(Long objOid,
Long notifyOid)
| Method Detail |
|---|
public String toString()
toString in class SubjectMessagepublic void setNamespace(Namespace namespace)
namespace - the namespacepublic Namespace getNamespace()
public void put(String key,
Serializable val)
setProperty(String key, Serializable val) instead
public void setProperty(String key,
Serializable val)
key - A String key.val - A Serializable value.public Serializable get(String key)
getProperty(String key) instead
public Serializable getProperty(String key)
key - A String key.
public Set<String> keySet()
public MVByteBuffer toBuffer(String version)
public MVByteBuffer toBuffer(String version,
Set<String> filteredProps)
public MVByteBuffer toBuffer(String version,
Map<String,Serializable> propMap,
Set<String> filteredProps)
public void fromBuffer(MVByteBuffer buf)
void setupTransient()
public Map<String,Serializable> getPropertyMapRef()
public static int createPropertyString(List<String> propStrings,
Map<String,Serializable> propertyMap,
String version)
propStrings -
public static int createFilteredPropertyString(List<String> propStrings,
Map<String,Serializable> propertyMap,
String version,
Set<String> filteredProps)
protected static int addPropertyStringElement(String key,
Serializable val,
List<String> propStrings,
String version,
int len)
public static Map<String,Serializable> unmarshallProperyMap(MVByteBuffer buffer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||