Utils
  1. Utils
  2. UTILS-13

Locking annotations for java.util.Concurrent

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.6
    • Fix Version/s: 0.7
    • Labels:
      None

      Description

      With the development of stateful POJO based services it can be really convenient to easily protect a given service using read write locks.
      By annotating a POJO such as in the following it should be easy to create a POJO service protected using read-write locks:

      @ReadLock
      pubilc void getSomething() { ...}

      @WriteLock
      public void setSomething(..) {...}

      The annotations should be put on the implementation class as the implementation defines it concurrency requirements the interface only defines the concurrency behavior. Also, this design allows a service implementation to do its own custom locking.

        Activity

        Hide
        Erik Brakkee added a comment -
        Added:

        wamblee-support:
        - org.wamblee.concurrency.ReadWriteLockProxyFactory

        Show
        Erik Brakkee added a comment - Added: wamblee-support: - org.wamblee.concurrency.ReadWriteLockProxyFactory

          People

          • Assignee:
            Admin (Erik Brakkee)
            Reporter:
            Erik Brakkee
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: