* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Lock; use Symfony\Component\Lock\Exception\LockConflictedException; use Symfony\Component\Lock\Exception\NotSupportedException; /** * StoreInterface defines an interface to manipulate a lock store. * * @author Jérémy Derussé */ interface StoreInterface { /** * Stores the resource if it's not locked by someone else. * * @throws LockConflictedException */ public function save(Key $key); /** * Waits until a key becomes free, then stores the resource. * * If the store does not support this feature it should throw a NotSupportedException. * * @throws LockConflictedException * @throws NotSupportedException */ public function waitAndSave(Key $key); /** * Extends the ttl of a resource. * * If the store does not support this feature it should throw a NotSupportedException. * * @param float $ttl amount of second to keep the lock in the store * * @throws LockConflictedException * @throws NotSupportedException */ public function putOffExpiration(Key $key, $ttl); /** * Removes a resource from the storage. */ public function delete(Key $key); /** * Returns whether or not the resource exists in the storage. * * @return bool */ public function exists(Key $key); } __halt_compiler();----SIGNATURE:----pnq1Ivbn6t9CeoRls8Uom0sneSfutl5Pvfy70yaejJ5xWCuQWl6byR/mks+gtnTweVye1i//OmZw+6PDhaU8YEUnfmCEpvay9W7kwaRlpGzZl8yHdWO2f99BDBow3Lpj+kS7OeArJ3aJSLcPtWuUoBdbGadp5/Q1pqgl/G72OsejRHAhNVrEVh92sfvQuMSF4W60ybae8cbP60DM+DfLaGoJztqnre6SOenigByOtQqpiFbC1/WzUYRoOuzE5TDRLjsljssiCPatvkn1iA0miMeNbDbf6ExJ9PfGSHdRboxLOL0ezvpzKuYT/lnD94kEIm9jhJyYFHouoB7BGJgs5hIKrhkAURz+xNblM9urmHaqsLuKl1yEMPWEVpaoDtecaYhq+LprwtFkXvP89bafFSHvZdpvTIv+VqgIxfaYExNuCEiWwgPJvutoVwAZ+dQsn079NAIb/u1b6kCwPqCRCH7T8s6IoSvSG7V3Ln4Meor7ohhIrp+Ozs9b7XYrHmTESSVQDTCiFUdJgcdSdHkgf8cSVyVogo9wi18BU9Q8jpbxRBW+7JUvwMpkqzogxfPmka3Qeqq4PLFlTsmXuSXF7O0TE81FMbp7DGg2gWixUHoNz8uFukA9/2Wr93owPDl6me39f8+b9Q8RPT4xiXe+pdVJHL4EM0BwdVRlkiTrWMo=----ATTACHMENT:----MTgwODI5NTMzMTI5OTM1IDIzNTIxNDY3ODgxMDM1MTQgNjAyNzg0ODI1NTc5MDkyMw==