Package org.red5.server.net.rtmp.event
Class Notify
java.lang.Object
org.red5.server.net.rtmp.event.BaseEvent
org.red5.server.net.rtmp.event.Notify
- All Implemented Interfaces:
Externalizable
,Serializable
,IEvent
,IStreamPacket
,ICommand
,IRTMPEvent
,Constants
,IStreamData<Notify>
- Direct Known Subclasses:
FlexStreamSend
,Invoke
Stream notification event. The invoke / transaction id is "always" equal to zero for a Notify.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.red5.server.api.event.IEvent
IEvent.Type
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
protected IServiceCall
Service callConnection parametersprotected org.apache.mina.core.buffer.IoBuffer
Event dataprotected byte
Event data typeprivate static final long
protected int
Invoke id / transaction idFields inherited from class org.red5.server.net.rtmp.event.BaseEvent
header, log, object, refcount, source, timestamp
Fields inherited from interface org.red5.server.net.rtmp.message.Constants
HANDSHAKE_SIZE, HEADER_CONTINUE, HEADER_NEW, HEADER_SAME_SOURCE, HEADER_TIMER_CHANGE, MEDIUM_INT_MAX, SO_CLIENT_CLEAR_DATA, SO_CLIENT_DELETE_DATA, SO_CLIENT_INITIAL_DATA, SO_CLIENT_SEND_MESSAGE, SO_CLIENT_STATUS, SO_CLIENT_UPDATE_ATTRIBUTE, SO_CLIENT_UPDATE_DATA, SO_CONNECT, SO_DELETE_ATTRIBUTE, SO_DISCONNECT, SO_SEND_MESSAGE, SO_SET_ATTRIBUTE, SOURCE_TYPE_LIVE, SOURCE_TYPE_VOD, TYPE_ABORT, TYPE_AGGREGATE, TYPE_AUDIO_DATA, TYPE_BYTES_READ, TYPE_CHUNK_SIZE, TYPE_CLIENT_BANDWIDTH, TYPE_EDGE_ORIGIN, TYPE_FLEX_MESSAGE, TYPE_FLEX_SHARED_OBJECT, TYPE_FLEX_STREAM_SEND, TYPE_INVOKE, TYPE_NOTIFY, TYPE_PING, TYPE_SERVER_BANDWIDTH, TYPE_SHARED_OBJECT, TYPE_STREAM_METADATA, TYPE_VIDEO_DATA
-
Constructor Summary
ConstructorDescriptionNotify()
Constructs a new NotifyNotify
(org.apache.mina.core.buffer.IoBuffer data) Create new notification event with given byte bufferCreate new notification event with given byte buffer and action.Notify
(IServiceCall call) Create new notification event with given service call -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Release event (nullify call object)Duplicate this Notify message to future injection Serialize to memory and deserialize, safe way.boolean
getCall()
Getter for service callGetter for connection parametersorg.apache.mina.core.buffer.IoBuffer
getData()
Getter for property 'data'.byte
Getter for data typeint
Getter for transaction idvoid
protected void
Release eventvoid
void
setCall
(IServiceCall call) Setter for callvoid
setConnectionParams
(Map<String, Object> connectionParams) Setter for connection parametersvoid
setData
(org.apache.mina.core.buffer.IoBuffer data) Setter for datatoString()
void
Methods inherited from class org.red5.server.net.rtmp.event.BaseEvent
getHeader, getObject, getSource, getSourceType, getTimestamp, getType, hasSource, release, retain, setHeader, setSource, setSourceType, setTimestamp, setType
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.red5.server.api.stream.IStreamPacket
getTimestamp
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
call
Service call -
data
protected org.apache.mina.core.buffer.IoBuffer dataEvent data -
dataType
protected byte dataTypeEvent data type -
transactionId
protected int transactionIdInvoke id / transaction id -
connectionParams
Connection parameters -
action
-
-
Constructor Details
-
Notify
public Notify()Constructs a new Notify -
Notify
public Notify(org.apache.mina.core.buffer.IoBuffer data) Create new notification event with given byte buffer- Parameters:
data
- Byte buffer
-
Notify
Create new notification event with given byte buffer and action.- Parameters:
data
- Byte bufferaction
- Action / method
-
Notify
Create new notification event with given service call- Parameters:
call
- Service call
-
-
Method Details
-
getDataType
public byte getDataType()Getter for data type- Specified by:
getDataType
in interfaceIRTMPEvent
- Specified by:
getDataType
in interfaceIStreamPacket
- Specified by:
getDataType
in classBaseEvent
- Returns:
- Data type
-
setData
public void setData(org.apache.mina.core.buffer.IoBuffer data) Setter for data- Parameters:
data
- Data
-
setCall
Setter for call- Parameters:
call
- Service call
-
getCall
Getter for service call -
getData
public org.apache.mina.core.buffer.IoBuffer getData()Getter for property 'data'.- Specified by:
getData
in interfaceICommand
- Specified by:
getData
in interfaceIStreamData<Notify>
- Specified by:
getData
in interfaceIStreamPacket
- Returns:
- Value for property 'data'
-
getTransactionId
public int getTransactionId()Getter for transaction id- Specified by:
getTransactionId
in interfaceICommand
- Returns:
- Transaction id
-
doRelease
protected void doRelease()Release event (nullify call object) -
getConnectionParams
Getter for connection parameters- Specified by:
getConnectionParams
in interfaceICommand
- Returns:
- Connection parameters
-
setConnectionParams
Setter for connection parameters- Parameters:
connectionParams
- Connection parameters
-
setAction
-
getAction
-
toString
-
equals
-
releaseInternal
protected void releaseInternal()Release event- Specified by:
releaseInternal
in classBaseEvent
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classBaseEvent
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classBaseEvent
- Throws:
IOException
-
duplicate
Duplicate this Notify message to future injection Serialize to memory and deserialize, safe way.- Specified by:
duplicate
in interfaceIStreamData<Notify>
- Returns:
- duplicated Notify event
- Throws:
IOException
- on errorClassNotFoundException
- on class not found
-