org.terracotta.management.message
Class DefaultMessage

java.lang.Object
  extended by org.terracotta.management.message.DefaultMessage
All Implemented Interfaces:
Serializable, Message

public final class DefaultMessage
extends Object
implements Serializable, Message

Author:
Mathieu Carbou
See Also:
Serialized Form

Constructor Summary
DefaultMessage(long timeMillis, ContextualNotification notification)
           
DefaultMessage(long timeMillis, ContextualReturn<?> response)
           
DefaultMessage(long timeMillis, ContextualStatistics... statistics)
           
 
Method Summary
 boolean equals(Object o)
           
 long getTimeMillis()
           
 String getType()
           
 int hashCode()
           
 String toString()
           
<T> T
unwrap(Class<T> type)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultMessage

public DefaultMessage(long timeMillis,
                      ContextualNotification notification)

DefaultMessage

public DefaultMessage(long timeMillis,
                      ContextualReturn<?> response)

DefaultMessage

public DefaultMessage(long timeMillis,
                      ContextualStatistics... statistics)
Method Detail

unwrap

public <T> T unwrap(Class<T> type)
Specified by:
unwrap in interface Message

getTimeMillis

public long getTimeMillis()
Specified by:
getTimeMillis in interface Message

getType

public String getType()
Specified by:
getType in interface Message

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2016. All Rights Reserved.