Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-897

Don't synchronize all methods on MessageBusProxy

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.2.1.Final
    • Fix Version/s: 3.2.2.Final
    • Component/s: ErraiBus
    • Labels:
      None

      Description

      When using CDI, injections sites for the ServerMessageBus are given a MessageBusProxy. All methods on this single proxy are synchronized including those allowing data to write to the actual bus message buffer. Writing through to the actual message bus should not be inside a synchronized block. This synchronization is unnecessary since the actual bus has its own concurrency strategy, and it potentially is causing minor performance penalties.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mbarkley Max Barkley
                Reporter:
                mbarkley Max Barkley
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: