|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fzi.kadmos.cloud.aws.SimpleCloudMessage
public class SimpleCloudMessage
Simple data object to wrap any serialisable object with a boolean indicating that this is a heartbeat.
| Constructor Summary | |
|---|---|
SimpleCloudMessage()
Generates a message without content and heartbeat set to true. |
|
SimpleCloudMessage(Serializable msg)
Generates a message with specified content and heartbeat set to false. |
|
| Method Summary | |
|---|---|
Serializable |
getMessage()
Returns the message content. |
boolean |
isHeartbeat()
Checks whether this message is a heartbeat. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleCloudMessage()
true.
public SimpleCloudMessage(Serializable msg)
false.
| Method Detail |
|---|
public Serializable getMessage()
public boolean isHeartbeat()
true if this message is a heartbeat,
false otherwise.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||