Package com.levigo.jadice.server.nodes
Interface StreamListener
-
- All Superinterfaces:
EventListener
public interface StreamListener extends EventListener
A listener interface to be implemented by classes wishing to be notified about the availability of a newStream
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
finished()
Receive notification about the end of the transmission, i.e.void
streamAvailable(Stream stream)
Receive notification about a newStream
.
-
-
-
Method Detail
-
streamAvailable
void streamAvailable(Stream stream)
Receive notification about a newStream
. Caveat: you must not block on this call in order to read the stream, as, depending on the stream transport type, this may deadlock the reception thread.- Parameters:
stream
- the newStream
-
finished
void finished()
Receive notification about the end of the transmission, i.e. that there will be no moreStream
s.
-
-