Package org.red5.server.net.rtmp.event
Class Invoke
java.lang.Object
org.red5.server.net.rtmp.event.BaseEvent
org.red5.server.net.rtmp.event.Notify
org.red5.server.net.rtmp.event.Invoke
- All Implemented Interfaces:
Externalizable
,Serializable
,IEvent
,IStreamPacket
,ICommand
,IRTMPEvent
,Constants
,IStreamData<Notify>
- Direct Known Subclasses:
FlexMessage
Remote invocation event
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.red5.server.api.event.IEvent
IEvent.Type
-
Field Summary
Fields inherited from class org.red5.server.net.rtmp.event.Notify
call, data, dataType, transactionId
Fields 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
ConstructorDescriptionInvoke()
Constructs a new Invoke.Invoke
(org.apache.mina.core.buffer.IoBuffer data) Create new invocation event with given dataInvoke
(IPendingServiceCall call) Create new invocation event with given pending service call -
Method Summary
Modifier and TypeMethodDescriptionDuplicate this Invoke message to future injection.boolean
getCall()
Getter for service callvoid
setTransactionId
(int transactionId) Setter for transaction idtoString()
Methods inherited from class org.red5.server.net.rtmp.event.Notify
doRelease, getAction, getConnectionParams, getData, getDataType, getTransactionId, readExternal, releaseInternal, setAction, setCall, setConnectionParams, setData, writeExternal
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:
-
-
Constructor Details
-
Invoke
public Invoke()Constructs a new Invoke. -
Invoke
public Invoke(org.apache.mina.core.buffer.IoBuffer data) Create new invocation event with given data- Parameters:
data
- Event data
-
Invoke
Create new invocation event with given pending service call- Parameters:
call
- Pending call
-
-
Method Details
-
setTransactionId
public void setTransactionId(int transactionId) Setter for transaction id- Parameters:
transactionId
- the transactionId to set
-
getCall
Getter for service call -
toString
-
equals
-
duplicate
Duplicate this Invoke message to future injection. Serialize to memory and deserialize, safe way.- Specified by:
duplicate
in interfaceIStreamData<Notify>
- Overrides:
duplicate
in classNotify
- Returns:
- duplicated Invoke event
- Throws:
IOException
- on errorClassNotFoundException
- on class not found
-