Examples of syncWrite()


Examples of org.apache.qpid.client.protocol.AMQProtocolHandler.syncWrite()

                    // Commits outstanding messages sent and outstanding acknowledgements.
                    final AMQProtocolHandler handler = getProtocolHandler();

                    TxCommitBody body = getMethodRegistry().createTxCommitBody();

                    handler.syncWrite(body.generateFrame(_channelId), TxCommitOkBody.class);

                    markClean();
                }

                catch (AMQException e)
View Full Code Here

Examples of org.apache.qpid.client.protocol.AMQProtocolHandler.syncWrite()

    public void sendCommit() throws AMQException, FailoverException
    {
        final AMQProtocolHandler handler = getProtocolHandler();

        handler.syncWrite(getProtocolHandler().getMethodRegistry().createTxCommitBody().generateFrame(_channelId), TxCommitOkBody.class);
    }

    public void sendCreateQueue(AMQShortString name, final boolean autoDelete, final boolean durable, final boolean exclusive, final Map<String, Object> arguments) throws AMQException,
            FailoverException
    {
View Full Code Here

Examples of org.apache.qpid.client.protocol.AMQProtocolHandler.syncWrite()

            acknowledgeMessage(tag, false);
        }

        final AMQProtocolHandler handler = getProtocolHandler();
        reduceCreditAfterAcknowledge();
        handler.syncWrite(getProtocolHandler().getMethodRegistry().createTxCommitBody().generateFrame(getChannelId()), TxCommitOkBody.class);
        _currentPrefetch.set(0);
    }

    public void sendCreateQueue(AMQShortString name, final boolean autoDelete, final boolean durable, final boolean exclusive, final Map<String, Object> arguments) throws AMQException,
            FailoverException
View Full Code Here

Examples of org.apache.qpid.client.protocol.AMQProtocolHandler.syncWrite()

                {
                    protocolHandler.writeFrame(exchangeDeclare);
                }
                else
                {
                    protocolHandler.syncWrite(exchangeDeclare, ExchangeDeclareOkBody.class, SYNC_TIMEOUT);
                }

//                return null;
//            }
//        }, (AMQConnection)_connection).execute();
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.