org.flexiblepower.ral.messages
public abstract class ResourceMessage extends java.lang.Object
ResourceMessage
s should be immutable, such that they can safely passed between components and
threads.Constructor and Description |
---|
ResourceMessage(java.lang.String resourceId,
java.util.Date timestamp)
Constructs a new ResourceMessage.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getResourceId() |
java.util.UUID |
getResourceMessageId() |
java.util.Date |
getTimestamp() |
int |
hashCode() |
java.lang.String |
toString() |
protected void |
toString(java.lang.StringBuilder sb) |
public ResourceMessage(java.lang.String resourceId, java.util.Date timestamp)
resourceId
- The resource identifiertimestamp
- The moment when this constructor is calledpublic java.util.UUID getResourceMessageId()
public java.lang.String getResourceId()
public java.util.Date getTimestamp()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public final java.lang.String toString()
toString
in class java.lang.Object
protected void toString(java.lang.StringBuilder sb)