You are here

public static function ComputingQueue::get in Drupal Computing 7.2

Factory method.

Parameters

$app_name:

Return value

object

File

./computing.queue.inc, line 23

Class

ComputingQueue
This file provides Queue support, an extra layer to handle computing records. The only benefit here is to provide an interface for Queue, perhaps people don't need it.

Code

public static function get($app_name) {
  static $queues;
  if (!isset($queues[$app_name])) {
    $object = new ComputingQueue($app_name);
    $queues[$app_name] = $object;
  }
  return $queues[$app_name];
}