message
Class ChannelReleaseMessage

java.lang.Object
  extended by message.Message
      extended by 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 message.Message
compareTo, getByteMessage, getChannel, getChannelID, getNextMixChannelID, getTimeOfReceival, setByteMessage, setMessageID, setPayloadRange, setTimeOfReceival
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface message.BasicMessage
getByteMessage, getChannel, getChannelID, getNextMixChannelID, getTimeOfReceival, setByteMessage, setMessageID, setPayloadRange, setTimeOfReceival
 

Field Detail

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
Constructor Detail

ChannelReleaseMessage

public ChannelReleaseMessage(User channel)
Constructs a new ChannelReleaseMessage for the specified user/channel.

Parameters:
channel - User/channel the message shall be created for.
Method Detail

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.