LockInterface.php 934 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\MessageQueue;
  7. /**
  8. * Class Lock to handle message lock transactions.
  9. */
  10. interface LockInterface
  11. {
  12. /**
  13. * Get lock id
  14. *
  15. * @return int
  16. */
  17. public function getId();
  18. /**
  19. * Set lock id
  20. *
  21. * @param int $value
  22. * @return void
  23. */
  24. public function setId($value);
  25. /**
  26. * Get message code
  27. *
  28. * @return string
  29. */
  30. public function getMessageCode();
  31. /**
  32. * Set message code
  33. *
  34. * @param string $value
  35. * @return void
  36. */
  37. public function setMessageCode($value);
  38. /**
  39. * Get lock date
  40. *
  41. * @return string
  42. */
  43. public function getCreatedAt();
  44. /**
  45. * Set lock date
  46. *
  47. * @param string $value
  48. * @return void
  49. */
  50. public function setCreatedAt($value);
  51. }