public abstract class Message extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Message.Type |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
done |
protected Integer |
hash |
protected int |
HASH_MULTIPLIER |
| Modifier | Constructor and Description |
|---|---|
protected |
Message(Message.Type type) |
protected |
Message(String aspect,
Message.Type type,
String[] tags) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
aggregate(Message message)
Aggregate message.
|
boolean |
canAggregate()
Return whether a message can be aggregated.
|
boolean |
equals(Object object)
Messages must implement hashCode.
|
String |
getAspect()
Return the message aspect.
|
boolean |
getDone() |
String[] |
getTags()
Return the array of tags for the message.
|
Message.Type |
getType()
Return the message type.
|
int |
hashCode()
Messages must implement hashCode.
|
void |
setDone(boolean done) |
protected boolean done
protected Integer hash
protected final int HASH_MULTIPLIER
protected Message(Message.Type type)
protected Message(String aspect, Message.Type type, String[] tags)
public abstract void aggregate(Message message)
message - Message to aggregate.public final String getAspect()
public final Message.Type getType()
public String[] getTags()
public boolean canAggregate()
public void setDone(boolean done)
public boolean getDone()
public int hashCode()
Copyright © 2022. All rights reserved.