message
Class ChannelReleaseMessage
java.lang.Object
message.Message
message.ChannelReleaseMessage
- All Implemented Interfaces:
- java.lang.Comparable<Message>, BasicMessage, ExternalMessage, Request
public final class ChannelReleaseMessage
- extends Message
- implements Request, ExternalMessage
ExternalMessage
used to release an existing channel.
- Author:
- Karl-Peter Fuchs
Field Summary |
static byte |
IDENTIFIER
Identifier for this type of message. |
Constructor Summary |
ChannelReleaseMessage(User channel)
Constructs a new ChannelReleaseMessage for the specified
user/channel. |
Method Summary |
int |
getMessageID()
Returns the message id -1111 (all ChannelReleaseMessages
have the same id). |
java.lang.String |
toString()
Returns a simple String representation of this object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IDENTIFIER
public static final byte IDENTIFIER
- Identifier for this type of message. Necessary since messages are
transmitted as byte streams which don't support the
instanceOf
operator.
- See Also:
- Constant Field Values
ChannelReleaseMessage
public ChannelReleaseMessage(User channel)
- Constructs a new
ChannelReleaseMessage
for the specified
user/channel.
- Parameters:
channel
- User/channel the message shall be created
for.
toString
public java.lang.String toString()
- Returns a simple String representation of this object.
- Overrides:
toString
in class java.lang.Object
- Returns:
- A simple String representation of this object.
getMessageID
public int getMessageID()
- Returns the message id -1111 (all
ChannelReleaseMessages
have the same id).
- Specified by:
getMessageID
in interface BasicMessage
- Overrides:
getMessageID
in class Message
- Returns:
- -1111.