Class ServerChannelUploadContext
java.lang.Object
no.mnemonic.messaging.requestsink.jms.context.ServerChannelUploadContext
- All Implemented Interfaces:
ServerContext
This context handles fragmented uploading of the signal message on the JMSRequestProxy (server) side.
- Set up temporary upload channel
- Signal client with upload channel
- Accept fragments and end-of-stream from client
- Reassemble fragments, verify and submit reassembled message to RequestSink
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionServerChannelUploadContext
(String callID, javax.jms.Session session, javax.jms.Destination responseDestination, long timeout, ProtocolVersion protocolVersion, int segmentWindowSize, ServerMetrics metrics, MessageSerializer serializer) -
Method Summary
-
Constructor Details
-
ServerChannelUploadContext
public ServerChannelUploadContext(String callID, javax.jms.Session session, javax.jms.Destination responseDestination, long timeout, ProtocolVersion protocolVersion, int segmentWindowSize, ServerMetrics metrics, MessageSerializer serializer)
-
-
Method Details
-
setupChannel
public void setupChannel(ServerChannelUploadContext.UploadHandler handler) throws javax.jms.JMSException - Parameters:
handler
- handler to receive the reassembled uploaded message- Throws:
javax.jms.JMSException
- on error receiving from JMS
-
isClosed
public boolean isClosed()- Specified by:
isClosed
in interfaceServerContext
- Returns:
- true if this context has been closed
-
abort
public void abort()Description copied from interface:ServerContext
Request that this context is aborted. No more responses should be allowed Ongoing execution should be interrupted.- Specified by:
abort
in interfaceServerContext
-
acknowledgeResponse
public void acknowledgeResponse()Description copied from interface:ServerContext
Acknowledgement from client that a response has been processed at the client- Specified by:
acknowledgeResponse
in interfaceServerContext
-