Package org.cometd.oort
Class OortObject.Info<T>
- Type Parameters:
T
- the type of the object
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Object>
- Enclosing class:
- OortObject<T>
public static class OortObject.Info<T> extends HashMap<String,Object>
The oort object part holding the object and the metadata associated with it.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
Field Summary
Fields Modifier and Type Field Description static String
ACTION_FIELD
static String
NAME_FIELD
static String
OBJECT_FIELD
static String
OORT_URL_FIELD
static String
PEER_FIELD
static String
TYPE_FIELD
static String
VERSION_FIELD
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description String
getName()
T
getObject()
String
getOortURL()
protected long
getVersion()
boolean
isLocal()
String
toString()
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Field Details
-
VERSION_FIELD
- See Also:
- Constant Field Values
-
OORT_URL_FIELD
- See Also:
- Constant Field Values
-
NAME_FIELD
- See Also:
- Constant Field Values
-
OBJECT_FIELD
- See Also:
- Constant Field Values
-
TYPE_FIELD
- See Also:
- Constant Field Values
-
ACTION_FIELD
- See Also:
- Constant Field Values
-
PEER_FIELD
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
getVersion
protected long getVersion() -
getOortURL
- Returns:
- the oort URL of this part
-
getName
- Returns:
- the name of the oort object
-
getObject
- Returns:
- the object value
-
isLocal
public boolean isLocal()- Returns:
- whether this Info is local to this node
-
toString
- Overrides:
toString
in classAbstractMap<String,Object>
-