Class HttpWorker

  • All Implemented Interfaces:
    Runnable

    public class HttpWorker
    extends Object
    implements Runnable
    Makes http post requests in a separate thread. curl -X POST -H "Content-Type: application/json" -d "@completed-success.json" "https://webhook.office.com/webhookb2..." -vs
    • Method Detail

      • submit

        public void submit()
        Sends the notification to the hook.
      • run

        public void run()
        Specified by:
        run in interface Runnable