Uploaded image for project: 'Edgent'
  1. Edgent
  2. EDGENT-308

Is it possible to use poll() with FileStreams together

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Information Provided
    • None
    • None
    • Connectors
    • None

    Description

      My requirement is to load data from a file and polling with a specific frequency (say every 1 second).

      I found Topology.poll() can do this, but it requires a Supplier parameter and the get method is called periodically. With this way, I have to read the file content myself and create a Iterable instance, then a Supplier.

      I want to use FileStreams.textFileReader() to handle the file reading. The problem is how to use it with Topology.poll() together? I could not find a way to do this.

      Is there any way to do this? Or connectors does not support "polling" at all?

      Attachments

        Activity

          People

            Unassigned Unassigned
            ilovepumpkin Rui Shen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: