org.red5.server.net.rtmp.event
Class AllocationDebugger

java.lang.Object
  extended by org.red5.server.net.rtmp.event.AllocationDebugger

public class AllocationDebugger
extends Object

Simple allocation debugger for Event reference counting.

Author:
The Red5 Project ([email protected]), Steven Gong ([email protected]) on behalf of ([email protected]), Paul Gregoire ([email protected])

Method Summary
protected  void create(BaseEvent event)
          Add event to map
 void dump()
          Dumps allocations
static AllocationDebugger getInstance()
          Getter for instance
protected  void release(BaseEvent event)
          Release event if there's no more references to it
protected  void retain(BaseEvent event)
          Retain event
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static AllocationDebugger getInstance()
Getter for instance

Returns:
Allocation debugger instance

create

protected void create(BaseEvent event)
Add event to map

Parameters:
event - Event

retain

protected void retain(BaseEvent event)
Retain event

Parameters:
event - Event

release

protected void release(BaseEvent event)
Release event if there's no more references to it

Parameters:
event - Event

dump

public void dump()
Dumps allocations



Copyright © 2006-2012 The Red5 Project