Package org.red5.server.messaging
Interface IMessage
- All Known Implementing Classes:
AbstractMessage
,ResetMessage
,RTMPMessage
,StatusMessage
public interface IMessage
Common interface for all messages.
Structure of messages is designed according to JMS Message interface. Message is composed of header and body. Header contains commonly used pre-defined headers and extensible headers.
Each message has correlation ID that is never used so far and is subject to be removed in future.
Message has type and number of properties.
- Author:
- The Red5 Project, Steven Gong (steven.gong@gmail.com)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getBooleanProperty
(String name) Getter for boolean propertybyte
getByteProperty
(String name) Add byte property to messageReturn correlation iddouble
getDoubleProperty
(String name) Return double property by namefloat
getFloatProperty
(String name) Return float property by nameint
getIntProperty
(String name) Return int property by namelong
getLongProperty
(String name) Return long property to messageReturn message idReturn message typegetObjectProperty
(String name) Return object property to messageshort
getShortProperty
(String name) Return short property to messagegetStringProperty
(String name) Return string property to messagevoid
setBooleanProperty
(String name, boolean value) Add boolean property to messagevoid
setByteProperty
(String name, byte value) Add byte property to messagevoid
Setter for correlation idvoid
setDoubleProperty
(String name, double value) Add double property to messagevoid
setFloatProperty
(String name, float value) Add float property to messagevoid
setIntProperty
(String name, int value) Add int property to messagevoid
setLongProperty
(String name, long value) Add long property to messagevoid
setMessageID
(String id) Setter for new message idvoid
setMessageType
(String type) Setter for message typevoid
setObjectProperty
(String name, Object value) Add object property to messagevoid
setShortProperty
(String name, short value) Add short property to messagevoid
setStringProperty
(String name, String value) Add string property to message
-
Method Details
-
getMessageID
String getMessageID()Return message id- Returns:
- Message id
-
setMessageID
Setter for new message id- Parameters:
id
- Message id
-
getCorrelationID
String getCorrelationID()Return correlation id- Returns:
- Correlation id
-
setCorrelationID
Setter for correlation id- Parameters:
id
- Correlation id
-
getMessageType
String getMessageType()Return message type- Returns:
- Message type
-
setMessageType
Setter for message type- Parameters:
type
- Message type
-
getBooleanProperty
Getter for boolean property- Parameters:
name
- Boolean property name- Returns:
- Boolean property
-
setBooleanProperty
Add boolean property to message- Parameters:
name
- Boolean property namevalue
- Boolean property value
-
getByteProperty
Add byte property to message- Parameters:
name
- Byte property name- Returns:
- Byte property value
-
setByteProperty
Add byte property to message- Parameters:
name
- Byte property namevalue
- Byte property value
-
getDoubleProperty
Return double property by name- Parameters:
name
- Double property name- Returns:
- Double property value
-
setDoubleProperty
Add double property to message- Parameters:
name
- Double property namevalue
- Double property value
-
getFloatProperty
Return float property by name- Parameters:
name
- Float property name- Returns:
- Float property value
-
setFloatProperty
Add float property to message- Parameters:
name
- Float property namevalue
- Float property value
-
getIntProperty
Return int property by name- Parameters:
name
- Int property name- Returns:
- Int property value
-
setIntProperty
Add int property to message- Parameters:
name
- Int property namevalue
- Int property value
-
getLongProperty
Return long property to message- Parameters:
name
- Long property name- Returns:
- Long property value
-
setLongProperty
Add long property to message- Parameters:
name
- Long property namevalue
- Long property value
-
getShortProperty
Return short property to message- Parameters:
name
- Short property name- Returns:
- Short property value
-
setShortProperty
Add short property to message- Parameters:
name
- Short property namevalue
- Short property value
-
getStringProperty
Return string property to message- Parameters:
name
- String property name- Returns:
- String property value
-
setStringProperty
Add string property to message- Parameters:
name
- String property namevalue
- String property value
-
getObjectProperty
Return object property to message- Parameters:
name
- Object property name- Returns:
- Object property value
-
setObjectProperty
Add object property to message- Parameters:
name
- Object property namevalue
- Object property value
-