|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SonicStream
A SonicStream represents data sent over JMS that can be read or written using
java.io.InputStream or java.io.OutputStream
api. It also provides some control information
associated with the data. An instance of a SonicStream is either an
input stream or an output stream, depending on whether it was created using a
SonicInputStreamController
or a SonicOutputStreamController
.
Method Summary | |
---|---|
Message |
getHeaderMessage()
Gets the JMS Message that is sent as the first message of the stream. |
java.io.InputStream |
getInputStream()
Gets the InputStream instance of this SonicStream instance. |
Destination |
getNotificationDestination()
Gets the JMS Destination used by this SonicStream instance for notifications. |
java.io.OutputStream |
getOutputStream()
Gets the OutputStream instance of this SonicStream instance. |
java.lang.String |
getStreamId()
Gets the identifier that is used to distinguish a SonicStream
instance (and its associated segments) from other SonicStream
instances. |
StreamStatus |
getStreamStatus()
Gets the current status of a SonicStream instance. |
Method Detail |
---|
Message getHeaderMessage()
java.lang.String getStreamId()
SonicStream
instance (and its associated segments) from other SonicStream
instances.
java.io.InputStream getInputStream()
SonicStream
instance.
java.io.OutputStream getOutputStream()
SonicStream
instance.
Destination getNotificationDestination()
SonicStream
instance for notifications.
For an input stream, notifications will be sent in the form of JMS TextMessages to this Destination.
For output streams, notification data will be received, in the form of JMS TextMessages, from this Destination.
StreamStatus getStreamStatus()
SonicStream
instance.
The status is returned as a StreamStatus
object.
StreamStatus
|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |