public class Notify extends BaseEvent implements ICommand, IStreamData<Notify>, IStreamPacket
IEvent.Type| Modifier and Type | Field and Description |
|---|---|
protected IServiceCall |
call
Service call
|
protected org.apache.mina.core.buffer.IoBuffer |
data
Event data
|
protected byte |
dataType
Event data type
|
protected int |
transactionId
Invoke id / transaction id
|
header, log, object, refcount, source, sourceType, timestampHANDSHAKE_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 and Description |
|---|
Notify()
Constructs a new Notify
|
Notify(org.apache.mina.core.buffer.IoBuffer data)
Create new notification event with given byte buffer
|
Notify(org.apache.mina.core.buffer.IoBuffer data,
String action)
Create new notification event with given byte buffer and action.
|
Notify(IServiceCall call)
Create new notification event with given service call
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doRelease()
Release event (nullify call object)
|
Notify |
duplicate()
Duplicate this Notify message to future injection Serialize to memory and deserialize, safe way.
|
boolean |
equals(Object obj) |
String |
getAction() |
IServiceCall |
getCall()
Getter for service call
|
Map<String,Object> |
getConnectionParams()
Getter for connection parameters
|
org.apache.mina.core.buffer.IoBuffer |
getData()
Getter for property 'data'.
|
byte |
getDataType()
Getter for data type
|
int |
getTransactionId()
Getter for transaction id
|
void |
readExternal(ObjectInput in) |
protected void |
releaseInternal()
Release event
|
void |
setAction(String onCueOrOnMeta) |
void |
setCall(IServiceCall call)
Setter for call
|
void |
setConnectionParams(Map<String,Object> connectionParams)
Setter for connection parameters
|
void |
setData(org.apache.mina.core.buffer.IoBuffer data)
Setter for data
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
getHeader, getObject, getSource, getSourceType, getTimestamp, getType, hasSource, release, retain, setHeader, setSource, setSourceType, setTimestamp, setTypeclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTimestampprotected IServiceCall call
protected org.apache.mina.core.buffer.IoBuffer data
protected byte dataType
protected int transactionId
public Notify()
public Notify(org.apache.mina.core.buffer.IoBuffer data)
data - Byte bufferpublic Notify(org.apache.mina.core.buffer.IoBuffer data,
String action)
data - Byte bufferaction - Action / methodpublic Notify(IServiceCall call)
call - Service callpublic byte getDataType()
getDataType in interface IStreamPacketgetDataType in interface IRTMPEventgetDataType in class BaseEventpublic void setData(org.apache.mina.core.buffer.IoBuffer data)
data - Datapublic void setCall(IServiceCall call)
call - Service callpublic IServiceCall getCall()
public org.apache.mina.core.buffer.IoBuffer getData()
getData in interface IStreamPacketgetData in interface ICommandgetData in interface IStreamData<Notify>public int getTransactionId()
getTransactionId in interface ICommandprotected void doRelease()
public Map<String,Object> getConnectionParams()
getConnectionParams in interface ICommandpublic void setConnectionParams(Map<String,Object> connectionParams)
connectionParams - Connection parameterspublic void setAction(String onCueOrOnMeta)
public String getAction()
protected void releaseInternal()
releaseInternal in class BaseEventpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class BaseEventIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class BaseEventIOExceptionpublic Notify duplicate() throws IOException, ClassNotFoundException
duplicate in interface IStreamData<Notify>IOException - on errorClassNotFoundException - on class not foundCopyright © 2005–2017 Red5. All rights reserved.