Class BaseEvent

java.lang.Object
org.red5.server.net.rtmp.event.BaseEvent
All Implemented Interfaces:
Externalizable, Serializable, IEvent, IRTMPEvent, Constants
Direct Known Subclasses:
Abort, Aggregate, AudioData, BytesRead, ChunkSize, ClientBW, ClientInvokeEvent, ClientNotifyEvent, Notify, Ping, ServerBW, SharedObjectMessage, Unknown, VideoData

public abstract class BaseEvent extends Object implements Constants, IRTMPEvent, Externalizable
Base abstract class for all RTMP events
See Also:
  • Field Details

    • log

      protected org.slf4j.Logger log
    • sourceType

      protected byte sourceType
      Source type
    • object

      protected Object object
      Event target object
    • source

      protected transient IEventListener source
      Event listener
    • timestamp

      protected int timestamp
      Event timestamp
    • refcount

      protected AtomicInteger refcount
      Event references count
  • Constructor Details

    • BaseEvent

      public BaseEvent()
    • BaseEvent

      public BaseEvent(IEvent.Type type)
      Create new event of given type
      Parameters:
      type - Event type
    • BaseEvent

      public BaseEvent(IEvent.Type type, IEventListener source)
      Create new event of given type
      Parameters:
      type - Event type
      source - Event source
  • Method Details