Examples of StreamMessage


Examples of javax.jms.StreamMessage

     * @param message the message
     * @return the body of the message
     * @throws JMSException for any JMS error
     */
    protected Object getBody(Message message) throws JMSException {
        StreamMessage msg = (StreamMessage) message;
        msg.reset();
        List result = new ArrayList();
        while (true) {
            try {
                Object value = msg.readObject();
                result.add(value);
            } catch (MessageEOFException exception) {
                break;
            }
        }
View Full Code Here

Examples of net.rim.device.api.io.messaging.StreamMessage

                input[i] = '5';
            }

            final ByteArrayInputStream bais = new ByteArrayInputStream(input);

            final StreamMessage message =
                    senderDestination.createStreamMessage();
            ((HttpMessage) message).setMethod(HttpMessage.POST);

            message.setStreamPayload(bais);
            message.setPriority(2);
            message.setTransportHeader("Transfer-Encoding", "chunked");

            final TimeoutMonitor timeoutThread =
                    new TimeoutMonitor(senderDestination, true, callback,
                            responseListener, message);
            final Thread t1 = new Thread(timeoutThread, "monitor");
View Full Code Here

Examples of org.apache.cassandra.streaming.messages.StreamMessage

            {
                ReadableByteChannel in = getReadChannel(socket);
                while (!isClosed())
                {
                    // receive message
                    StreamMessage message = StreamMessage.deserialize(in, protocolVersion, session);
                    // Might be null if there is an error during streaming (see FileMessage.deserialize). It's ok
                    // to ignore here since we'll have asked for a retry.
                    if (message != null)
                    {
                        logger.debug("[Stream #{}] Received {}", session.planId(), message);
View Full Code Here

Examples of org.apache.cassandra.streaming.messages.StreamMessage

        {
            try
            {
                DataOutputStreamAndChannel out = getWriteChannel(socket);

                StreamMessage next;
                while (!isClosed())
                {
                    if ((next = messageQueue.poll(1, TimeUnit.SECONDS)) != null)
                    {
                        logger.debug("[Stream #{}] Sending {}", session.planId(), next);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.