public interface SharkMessengerChannel
Modifier and Type | Method and Description |
---|---|
SharkCommunicationAge |
getAge() |
SharkMessageList |
getMessages()
Return a list of all messages (sent and received) ordered by timestamp.
|
SharkMessageList |
getMessages(boolean sentMessagesOnly,
boolean ordered)
Produce a list of messages in this channel.
|
java.lang.CharSequence |
getName() |
java.lang.CharSequence |
getURI()
Return the URI of this channel.
|
boolean |
isBronzeAge() |
boolean |
isInternetAge() |
boolean |
isStoneAge() |
void |
setAge(SharkCommunicationAge channelAge) |
void setAge(SharkCommunicationAge channelAge)
SharkCommunicationAge getAge()
java.lang.CharSequence getURI() throws java.io.IOException
java.io.IOException
java.lang.CharSequence getName() throws java.io.IOException
java.io.IOException
boolean isStoneAge()
boolean isBronzeAge()
boolean isInternetAge()
SharkMessageList getMessages(boolean sentMessagesOnly, boolean ordered) throws SharkMessengerException, java.io.IOException
sentMessagesOnly
- true: only messages sent by this peer; false: also received messagesordered
- true: messages are sorted by a timestamp (note1: sorting is useless when using
sentMessagesOnly == true. They are already ordered. note2: timestamps are produced from
distributed and not synchronized clocks. It is not safe)SharkMessengerException
java.io.IOException
SharkMessageList getMessages() throws SharkMessengerException, java.io.IOException
SharkMessengerException
java.io.IOException
getMessages(boolean, boolean)