org.mobicents.mscontrol.impl
Class MsActionPerformer

java.lang.Object
  extended by org.mobicents.mscontrol.impl.MsActionPerformer
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
MsConnectionImpl, MsEndpointImpl, MsLinkImpl, MsSessionImpl

public abstract class MsActionPerformer
extends java.lang.Object
implements java.lang.Runnable

Start time:16:25:53 2008-12-10
Project: mobicents-media-server-core
This class is super class which should be extendsed by all elements that performs some actions - send events, schedule transactions etc. It enforces synced execution without sync

Author:
baranowb - Bartosz Baranowski

Field Summary
protected  java.util.LinkedList<java.lang.Runnable> taskList
          This list holds submited actions
 
Constructor Summary
MsActionPerformer()
           
 
Method Summary
 void run()
           
 void submit(java.lang.Runnable r)
          Adds runnable to queue, schedules to execution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

taskList

protected java.util.LinkedList<java.lang.Runnable> taskList
This list holds submited actions

Constructor Detail

MsActionPerformer

public MsActionPerformer()
Method Detail

submit

public void submit(java.lang.Runnable r)
Adds runnable to queue, schedules to execution

Parameters:
r -

run

public void run()
Specified by:
run in interface java.lang.Runnable


Copyright © 2009. All Rights Reserved.