Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2469

GossipRouter: make GraalVM-compliant

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 5.0.0.Alpha5, 4.2.4
    • None
    • None

    Description

      Currently, GossipRouter starts threads in the constructor. This prohibits it to run under GraalVM as a native image, as threads cannot be started at build time.

      Create a separate method init(), which is called after the constructor and after all attributes have been set, but before start().

      Alternative: use a builder:

      router=GossipRouter.builder().setXX().build(); // creates server
      router.start();
      

      Attachments

        Activity

          People

            rhn-engineering-bban Bela Ban
            rhn-engineering-bban Bela Ban
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: