Class ChannelUploadMessageContext
java.lang.Object
no.mnemonic.messaging.requestsink.jms.context.ChannelUploadMessageContext
- All Implemented Interfaces:
RequestContext
This context handles fragmented upload of the signal message on the JMSRequestSink (client) side
- Send a channel request message to the server, and wait for reply
- Fragment the message into suitable fragments, and submit to upload channel
- Finish stream with end-of-stream, and close the upload channel
-
Constructor Summary
ConstructorsConstructorDescriptionChannelUploadMessageContext
(RequestContext realContext, InputStream messageData, String callID, int fragmentSize, ProtocolVersion protocolVersion, ClientMetrics metrics) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(RequestListener listener) boolean
addResponse
(Message msg) void
boolean
isClosed()
boolean
keepAlive
(long until) void
void
void
removeListener
(RequestListener listener)
-
Constructor Details
-
ChannelUploadMessageContext
public ChannelUploadMessageContext(RequestContext realContext, InputStream messageData, String callID, int fragmentSize, ProtocolVersion protocolVersion, ClientMetrics metrics)
-
-
Method Details
-
addResponse
- Specified by:
addResponse
in interfaceRequestContext
-
endOfStream
public void endOfStream()- Specified by:
endOfStream
in interfaceRequestContext
-
isClosed
public boolean isClosed()- Specified by:
isClosed
in interfaceRequestContext
-
keepAlive
public boolean keepAlive(long until) - Specified by:
keepAlive
in interfaceRequestContext
-
notifyError
- Specified by:
notifyError
in interfaceRequestContext
-
notifyClose
public void notifyClose()- Specified by:
notifyClose
in interfaceRequestContext
-
addListener
- Specified by:
addListener
in interfaceRequestContext
-
removeListener
- Specified by:
removeListener
in interfaceRequestContext
-