org.red5.server.so
Class SharedObjectEvent

java.lang.Object
  extended by org.red5.server.so.SharedObjectEvent
All Implemented Interfaces:
Externalizable, Serializable, ISharedObjectEvent

public class SharedObjectEvent
extends Object
implements ISharedObjectEvent, Externalizable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.red5.server.so.ISharedObjectEvent
ISharedObjectEvent.Type
 
Constructor Summary
SharedObjectEvent()
           
SharedObjectEvent(ISharedObjectEvent.Type type, String key, Object value)
           
 
Method Summary
 String getKey()
          Returns the key of the event.
 ISharedObjectEvent.Type getType()
          Returns the type of the event.
 Object getValue()
          Returns the value of the event.
 void readExternal(ObjectInput in)
           
 String toString()
          
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SharedObjectEvent

public SharedObjectEvent()

SharedObjectEvent

public SharedObjectEvent(ISharedObjectEvent.Type type,
                         String key,
                         Object value)
Parameters:
type - type
key - key
value - value
Method Detail

getKey

public String getKey()
Returns the key of the event. Depending on the type this contains: 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: 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