TomLisankie commented on issue #36: Make other constructor in 
ScuttlebuttLocalDiscoveryService.java public
URL: https://github.com/apache/incubator-tuweni/pull/36#issuecomment-539112374
 
 
   Okay, added javadoc. And yeah, I'm just building a Clojure wrapper for all 
the Scuttlebutt functions in Tuweni basically. Here's a function for creating a 
discovery service. As noted, I had to make the function  single-arity until 
this pull request goes through because having the second one was not working: 
   ```clojure
   (defn create-discovery-service
     "Returns a new instance of the ScuttlebuttLocalDiscoveryService"
     [port source-ip multicast-ip]
     (ScuttlebuttLocalDiscoveryService. (io.vertx.core.Vertx/vertx)
                                        (.getLogger 
(org.logl.LoggerProvider/nullProvider)
                                                    "test")
                                        port
                                        source-ip
                                        multicast-ip))
   ; this arity is gonna have to wait until my Tuweni pull request goes through
     ;; ([listen-port broadcast-port source-ip multicast-ip validate-multicast]
     ;;  (ScuttlebuttLocalDiscoveryService. (io.vertx.core.Vertx/vertx)
     ;;                                     (.getLogger 
(org.logl.LoggerProvider/nullProvider)
     ;;                                                 "test")
     ;;                                     listen-port
     ;;                                     broadcast-port
     ;;                                     source-ip
     ;;                                     multicast-ip
     ;;                                     validate-multicast)))
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to