Github user arunmahadevan commented on a diff in the pull request:

    https://github.com/apache/storm/pull/2089#discussion_r113394121
  
    --- Diff: 
storm-client/src/jvm/org/apache/storm/topology/TopologyBuilder.java ---
    @@ -353,6 +421,31 @@ public void setStateSpout(String id, IRichStateSpout 
stateSpout, Number parallel
         }
     
         /**
    +     * Define a new spout in this topology.
    +     *
    +     * @param id the id of this component. This id is referenced by other 
components that want to consume this spout's outputs.
    +     * @param supplier lambda expression that implements tuple generating 
for this spout
    +     * @throws IllegalArgumentException if {@code parallelism_hint} is not 
positive
    +     */
    +    public SpoutDeclarer setSpout(String id, SerializableSupplier<Object> 
supplier) throws IllegalArgumentException {
    --- End diff --
    
    may be better:
    ```java 
    public SpoutDeclarer setSpout(String id, SerializableSupplier<?> supplier) 
throws IllegalArgumentException
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to