|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonicsw.stream.SonicStreamConstants
public final class SonicStreamConstants
Defines properties, notification constants, and error codes used by the SonicStreams api.
Field Summary | |
---|---|
static int |
NOTIFY_REC_COMPLETED
Predefined notification type: the receiver has successfully received all of the stream data. |
static int |
NOTIFY_REC_ERROR
Predefined notification type: the receiver encountered an error while receiving the stream. |
static int |
NOTIFY_REC_RETRY_REQ
Predefined notification type: the receiver is requesting a resend of the stream. |
static int |
NOTIFY_REC_STARTED
Predefined notification type: the receiver has started receiving the stream. |
static java.lang.String |
STR_ID
Property name of stream identifier (String property). |
static java.lang.String |
STR_NOTIFY_TYPE
Property name of notification type, for notification messages (Integer property). |
static java.lang.String |
STR_RECEIVER_ERRORCODE
Property name of error code, for notification messages (Integer property). |
static java.lang.String |
STR_RECEIVER_ERRORMSG
Property name of error message textual description sent by receiver (String property). |
static java.lang.String |
STR_RECEIVER_NAME
Property name of the receiver [that generated notification message] name (String property). |
static java.lang.String[] |
STREAM_ERRORS
Maps a numeric error code to a String. |
static int |
STRERROR_CONNECTION_LOST
Error code returned when a SonicInputStreamController has been closed
or when a JMS connection drop has been detected. |
static int |
STRERROR_DUPLICATE_STREAMID
Error code returned by the receiver when a segment arrives with a stream identifier that corresponds to a stream whose segments have already been fully received. |
static int |
STRERROR_ERROR
Error code returned when an a missing property or object (such as a JMS Connection) is detected. |
static int |
STRERROR_INCOMPLETE_STREAM
Error code returned by the receiver when the start of another stream with the same stream identifier is detected. |
static int |
STRERROR_INTERRUPTED
Error code returned when a thread is interrupted while performing a stream-related operation, e.g. waiting for stream segments to arrive. |
static int |
STRERROR_JMS_EXCEPTION
Error code returned when a JMS exception has been thrown. |
static int |
STRERROR_NO_INITCONTENT
Error code returned when a segment has been received for a stream that may have been closed or for which a header segment was not received. |
static int |
STRERROR_TIMEOUT
Error code returned when a read call has waited for longer than the configured timeout for a segment to arrive. |
static int |
STRERROR_USAGE
Constant that indicates an error on the part of the user (e.g. improper configuration, failure to close an active output stream before creating a new output stream, etc.) |
Constructor Summary | |
---|---|
SonicStreamConstants()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String STR_ID
public static final java.lang.String STR_NOTIFY_TYPE
public static final java.lang.String STR_RECEIVER_ERRORCODE
public static final java.lang.String STR_RECEIVER_ERRORMSG
public static final java.lang.String STR_RECEIVER_NAME
public static final int NOTIFY_REC_STARTED
Note that any user-defined notifications should be defined with a value greater than that of any of the pre-defined types, in order to prevent a conflict.
public static final int NOTIFY_REC_COMPLETED
Note that any user-defined notifications should be defined with a value greater than that of any of the pre-defined types, in order to prevent a conflict.
public static final int NOTIFY_REC_ERROR
Note that any user-defined notifications should be defined with a value greater than that of any of the pre-defined types, in order to prevent a conflict.
public static final int NOTIFY_REC_RETRY_REQ
Note that any user-defined notifications should be defined with a value greater than that of any of the pre-defined types, in order to prevent a conflict.
public static final int STRERROR_USAGE
public static final int STRERROR_TIMEOUT
public static final int STRERROR_NO_INITCONTENT
public static final int STRERROR_INCOMPLETE_STREAM
public static final int STRERROR_DUPLICATE_STREAMID
public static final int STRERROR_JMS_EXCEPTION
SonicStream
instance from a SonicInputStreamController
instance, it may be
necessary to make another attempt or to close the existing controller instance
and then create a new controller instance.
public static final int STRERROR_CONNECTION_LOST
SonicInputStreamController
has been closed
or when a JMS connection drop has been detected.
User action: create a new controller instance and/or re-establish the JMS connection.
public static final int STRERROR_ERROR
createSonicOutputStreamController
, the application code
must be modified to provide the missing reference.
public static final int STRERROR_INTERRUPTED
public static final java.lang.String[] STREAM_ERRORS
Constructor Detail |
---|
public SonicStreamConstants()
|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |