blob: 283b4eacd9a0b8448086fe46e713a298a0657eac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package mining;
/**
* interface for all streaming classes.
*
* @author Maurice Laveaux
*/
public interface Stream {
/**
* Open the connection to the server.
*/
public void open();
/**
* Set a single listener for this stream.
*
* @param listener The object that is listening.
*/
public void setListener(StreamListener listener);
/**
* Test whether the stream is ready for streaming
*
* @return true if connection can be made, false otherwise.
*/
public boolean isValid();
}
|