com.androidplot.util
Class MultiSynch

java.lang.Object
  extended by com.androidplot.util.MultiSynch

public abstract class MultiSynch
extends Object

Utility class for obtaining synch lock across multiple objects.


Nested Class Summary
static interface MultiSynch.Action
          Callback class for doing work from within a MultiSynch.
 
Constructor Summary
MultiSynch()
           
 
Method Summary
static void run(Object[] params, List synchList, MultiSynch.Action action)
           
static void run(Object[] params, Object[] synchArr, MultiSynch.Action action)
           
static void run(Object[] params, Set synchSet, MultiSynch.Action action)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiSynch

public MultiSynch()
Method Detail

run

public static void run(Object[] params,
                       Set synchSet,
                       MultiSynch.Action action)
Parameters:
params -
synchSet - Set of objects to be synchronized upon
action - Action to be invoked once full synchronization has been obtained.

run

public static void run(Object[] params,
                       List synchList,
                       MultiSynch.Action action)
Parameters:
params -
synchList - List of objects to be synchronized upon
action - Action to be invoked once full synchronization has been obtained.

run

public static void run(Object[] params,
                       Object[] synchArr,
                       MultiSynch.Action action)
Parameters:
params -
synchArr - Array of objects to be synchronized upon
action - Action to be invoked once full synchronization has been obtained.


Copyright © 2010-2013 androidplot.com. All Rights Reserved.