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)
-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.mina.core.buffer.IoBuffer
private byte
private boolean
Valid only for video packetsprivate VideoData.ExVideoPacketType
Valid only for video packetsprivate VideoData.FrameType
Valid only for video packetsprivate long
Time at which the event entered the serverprivate int
Event timestamp -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
org.apache.mina.core.buffer.IoBuffer
getData()
Packet contents.byte
Type of this packet.long
int
Timestamp of this packet.int
hashCode()
boolean
void
setData
(org.apache.mina.core.buffer.IoBuffer data) void
setDataType
(byte dataType) void
setExVideoHeader
(boolean exVideoHeader) void
setExVideoPacketType
(VideoData.ExVideoPacketType exVideoPacketType) void
setFrameType
(VideoData.FrameType frameType) void
setReceivedTime
(long receivedTime) void
setTimestamp
(int timestamp)
-
Field Details
-
timestamp
private int timestampEvent timestamp -
receivedTime
private long receivedTimeTime at which the event entered the server -
dataType
private byte dataType -
data
private org.apache.mina.core.buffer.IoBuffer data -
exVideoHeader
private boolean exVideoHeaderValid only for video packets -
exVideoPacketType
Valid only for video packets -
frameType
Valid only for video packets
-
-
Constructor Details
-
CachedEvent
public CachedEvent()
-
-
Method Details
-
getTimestamp
public int getTimestamp()Description copied from interface:IStreamPacket
Timestamp of this packet.- Specified by:
getTimestamp
in 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:IStreamPacket
Type of this packet. This is one of theTYPE_
constants.- Specified by:
getDataType
in 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:IStreamPacket
Packet contents.- Specified by:
getData
in 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
-
isExVideoHeader
public boolean isExVideoHeader() -
setExVideoHeader
public void setExVideoHeader(boolean exVideoHeader) -
getExVideoPacketType
-
setExVideoPacketType
-
getFrameType
-
setFrameType
-