org.red5.server.so
Class SharedObjectEvent
java.lang.Object
org.red5.server.so.SharedObjectEvent
- All Implemented Interfaces:
- Externalizable, Serializable, ISharedObjectEvent
public class SharedObjectEvent
- extends Object
- implements ISharedObjectEvent, Externalizable
- See Also:
- Serialized Form
SharedObjectEvent
public SharedObjectEvent()
SharedObjectEvent
public SharedObjectEvent(ISharedObjectEvent.Type type,
String key,
Object value)
- Parameters:
type
- typekey
- keyvalue
- value
getKey
public String getKey()
- Returns the key of the event.
Depending on the type this contains:
- the attribute name to set for SET_ATTRIBUTE
- the attribute name to delete for DELETE_ATTRIBUTE
- the handler name to call for SEND_MESSAGE
In all other cases the key is null
.
- Specified by:
getKey
in interface ISharedObjectEvent
- Returns:
- the key of the event
getType
public ISharedObjectEvent.Type getType()
- Returns the type of the event.
- Specified by:
getType
in interface ISharedObjectEvent
- Returns:
- the type of the event.
getValue
public Object getValue()
- Returns the value of the event.
Depending on the type this contains:
- the attribute value to set for SET_ATTRIBUTE
- a list of parameters to pass to the handler for SEND_MESSAGE
In all other cases the value is null
.
- Specified by:
getValue
in interface ISharedObjectEvent
- Returns:
- the value of the event
toString
public String toString()
-
- Overrides:
toString
in class Object
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
Copyright © 2006-2012 The Red5 Project