Uploaded image for project: 'Commons Chain'
  1. Commons Chain
  2. CHAIN-96

Make base command implementations in o.a.c.chain2.base thread safe

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0
    • 2.0
    • Base
    • None

    Description

      The base classes in o.a.c.chain2.base are not thread safe. Since the JavaDoc of o.a.c.chain2.Command says that command implementations have to be thread safe, we should make sure that this is the case for the base implemenations we provide.

      One possibility is to initialize all fields through the constructor.
      Another solution is not to use fields, but to obtain required by the commands from the context.

      Attachments

        Activity

          People

            Unassigned Unassigned
            britter Benedikt Ritter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: