public function collect($force = false)
    {
        $active = $this->getPersistence()->get(self::class);
        if (!$active || $force) {
            $action = new GetActiveDeliveryExecution();
            $this->propagate($action);
            $active = $action->getNumberOfActiveActions();
            $this->getPersistence()->set(self::class, $active, $this->getOption(self::OPTION_TTL));
        }
        return $active;


    }
public function collect($force = false)
    {
        $active = $this->getPersistence()->get(self::class);
        if (!$active || $force) {
            $action = new GetActiveDeliveryExecution();
            $this->propagate($action);
            $active = $action->getNumberOfActiveActions();
            $this->getPersistence()->set(self::class, $active, $this->getOption(self::OPTION_TTL));
        }
        return $active;


    }
public function collect ( $ force = false ) { $ active = $ this -> getPersistence ( ) -> get ( self :: class ) ; if ( ! $ active || $ force ) { $ action = new GetActiveDeliveryExecution ( ) ; $ this -> propagate ( $ action ) ; $ active = $ action -> getNumberOfActiveActions ( ) ; $ this -> getPersistence ( ) -> set ( self :: class , $ active , $ this -> getOption ( self :: OPTION_TTL ) ) ; } return $ active ; }
Collect values, caches
@param bool $force
@return mixed
@throws \common_Exception
@throws \oat\oatbox\service\exception\InvalidServiceManagerException
Collect values caches