summaryrefslogtreecommitdiff
path: root/src/mining/StreamListener.java
blob: 3b163eb66e0934667f3eb28fece3f6217b671ca3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package mining;

import org.json.JSONObject;

/**
 * A callback provider to listen from streams.
 *
 * @author Maurice Laveaux
 */
public interface StreamListener {

    /**
     * This method is called by the stream when new objects are streamed in.
     *
     * @param data The JSON data returned.
     */
    public void notify(JSONObject data);
}