Package org.red5.server.net.rtmp.event
Class CachedEvent
java.lang.Object
org.red5.server.net.rtmp.event.CachedEvent
- All Implemented Interfaces:
IStreamPacket
Provides a means for storage of RTMP events.
- Author:
- Paul Gregoire (mondain@gmail.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.mina.core.buffer.IoBuffergetData()Packet contents.byteType of this packet.longintTimestamp of this packet.inthashCode()voidsetData(org.apache.mina.core.buffer.IoBuffer data) voidsetDataType(byte dataType) voidsetReceivedTime(long receivedTime) voidsetTimestamp(int timestamp)
-
Constructor Details
-
CachedEvent
public CachedEvent()
-
-
Method Details
-
getTimestamp
public int getTimestamp()Description copied from interface:IStreamPacketTimestamp of this packet.- Specified by:
getTimestampin interfaceIStreamPacket- Returns:
- the timestamp
-
setTimestamp
public void setTimestamp(int timestamp) - Parameters:
timestamp- the timestamp to set
-
getReceivedTime
public long getReceivedTime()- Returns:
- the receivedTime
-
setReceivedTime
public void setReceivedTime(long receivedTime) - Parameters:
receivedTime- the receivedTime to set
-
getDataType
public byte getDataType()Description copied from interface:IStreamPacketType of this packet. This is one of theTYPE_
constants.- Specified by:
getDataTypein interfaceIStreamPacket- Returns:
- the dataType
-
setDataType
public void setDataType(byte dataType) - Parameters:
dataType- the dataType to set
-
getData
public org.apache.mina.core.buffer.IoBuffer getData()Description copied from interface:IStreamPacketPacket contents.- Specified by:
getDatain interfaceIStreamPacket- Returns:
- the data
-
setData
public void setData(org.apache.mina.core.buffer.IoBuffer data) - Parameters:
data- the data to set
-
hashCode
public int hashCode() -
equals
-