public class Notify extends BaseEvent implements IStreamData<Notify>, IStreamPacket
IEvent.Type| Modifier and Type | Field and Description |
|---|---|
protected IServiceCall |
call
Service call
|
protected IoBuffer |
data
Event data
|
header, object, refcount, source, 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(IoBuffer data)
Create new notification event with given byte buffer
|
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) |
IServiceCall |
getCall()
Getter for service call
|
Map<String,Object> |
getConnectionParams()
Getter for connection parameters
|
IoBuffer |
getData()
Getter for property 'data'.
|
byte |
getDataType()
Getter for data type
|
int |
getInvokeId()
Getter for invoke id
|
void |
readExternal(ObjectInput in) |
protected void |
releaseInternal()
Release event
|
void |
setCall(IServiceCall call)
Setter for call
|
void |
setConnectionParams(Map<String,Object> connectionParams)
Setter for connection parameters
|
void |
setData(IoBuffer data)
Setter for data
|
void |
setInvokeId(int invokeId)
Setter for invoke id
|
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 IoBuffer data
public Notify()
public Notify(IoBuffer data)
data - Byte bufferpublic Notify(IServiceCall call)
call - Service callpublic byte getDataType()
getDataType in interface IStreamPacketgetDataType in interface IRTMPEventgetDataType in class BaseEventpublic void setData(IoBuffer data)
data - Datapublic void setCall(IServiceCall call)
call - Service callpublic IServiceCall getCall()
public IoBuffer getData()
getData in interface IStreamPacketgetData in interface IStreamData<Notify>public int getInvokeId()
public void setInvokeId(int invokeId)
invokeId - Invoke idprotected void doRelease()
public Map<String,Object> getConnectionParams()
public void setConnectionParams(Map<String,Object> connectionParams)
connectionParams - Connection parametersprotected 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>IOExceptionClassNotFoundExceptionCopyright © 2006-2012 The Red5 Project