Overview

Namespaces

  • Net
    • Bazzline
      • Component
        • Lock

Classes

  • Net\Bazzline\Component\Lock\FileHandlerLock
  • Net\Bazzline\Component\Lock\FileNameLock
  • Net\Bazzline\Component\Lock\RuntimeLock

Interfaces

  • Net\Bazzline\Component\Lock\LockAwareInterface
  • Net\Bazzline\Component\Lock\LockDependentInterface
  • Net\Bazzline\Component\Lock\LockInterface
  • Overview
  • Namespace
  • Class
 1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 
<?php
/**
 * @author stev leibelt <artodeto@bazzline.net>
 * @since 2013-06-30 
 */

namespace Net\Bazzline\Component\Lock;

use InvalidArgumentException;

/**
 * Class LockInterface
 *
 * @package Net\Bazzline\Component\Lock
 */
interface LockInterface
{
    /**
     * @return boolean
     */
    public function isLocked();

    /**
     * @throws \RuntimeException
     */
    public function acquire();

    /**
     * @throws \RuntimeException
     */
    public function release();

    /**
     * @return mixed
     */
    public function getResource();

    /**
     * @param mixed $resource
     * @throws InvalidArgumentException
     */
    public function setResource($resource);
}
PHP Process Lock Component by bazzline.net API documentation generated by ApiGen