Package org.apache.qpid.server.store.berkeleydb.keys

Examples of org.apache.qpid.server.store.berkeleydb.keys.MessageContentKey_4


    public MessageContentKey entryToObject(TupleInput tupleInput)
    {
        long messageId = tupleInput.readLong();
        int chunk = tupleInput.readInt();
        return new MessageContentKey_4(messageId, chunk);
    }
View Full Code Here


        return new MessageContentKey_4(messageId, chunk);
    }

    public void objectToEntry(MessageContentKey object, TupleOutput tupleOutput)
    {
        final MessageContentKey_4 mk = (MessageContentKey_4) object;
        tupleOutput.writeLong(mk.getMessageId());
        tupleOutput.writeInt(mk.getChunk());
    }
View Full Code Here

            long messageId = store.getNewMessageId();
            TupleBinding<MessageContentKey> contentKeyTB = new MessageContentKeyTupleBindingFactory(storeVersion).getInstance();
            MessageContentKey contentKey = null;
            if (storeVersion == VERSION_4)
            {
                contentKey = new MessageContentKey_4(messageId, 0);
            }
            else
            {
                throw new Exception(storeVersion + " is not supported");
            }
View Full Code Here

            public void visit(DatabaseEntry key, DatabaseEntry value) throws DatabaseException
            {
                _count++;

                //determine the msgId of the current entry
                MessageContentKey_4 contentKey = (MessageContentKey_4) oldContentKeyTupleBinding.entryToObject(key);
                long msgId = contentKey.getMessageId();

                // ONLY copy data if message is delivered to existing queue
                if (!queueMessages.contains(msgId))
                {
                    return;
View Full Code Here

            final long messageId = store.getNewMessageId();
            TupleBinding<MessageContentKey> contentKeyTB = new MessageContentKeyTupleBindingFactory(storeVersion).getInstance();
            MessageContentKey contentKey = null;
            if (storeVersion == VERSION_4)
            {
                contentKey = new MessageContentKey_4(messageId, 0);
            }
            else
            {
                throw new Exception(storeVersion + " is not supported");
            }
View Full Code Here

        public void visit(DatabaseEntry key, DatabaseEntry value) throws DatabaseException
        {
            incrementCount();

            //determine the msgId of the current entry
            MessageContentKey_4 contentKey = (MessageContentKey_4) _oldContentKeyTupleBinding.entryToObject(key);
            long msgId = contentKey.getMessageId();

            // ONLY copy data if message is delivered to existing queue
            if (!_queueMessages.contains(msgId))
            {
                return;
View Full Code Here

    public MessageContentKey entryToObject(TupleInput tupleInput)
    {
        long messageId = tupleInput.readLong();
        int chunk = tupleInput.readInt();
        return new MessageContentKey_4(messageId, chunk);
    }
View Full Code Here

        return new MessageContentKey_4(messageId, chunk);
    }

    public void objectToEntry(MessageContentKey object, TupleOutput tupleOutput)
    {
        final MessageContentKey_4 mk = (MessageContentKey_4) object;
        tupleOutput.writeLong(mk.getMessageId());
        tupleOutput.writeInt(mk.getChunk());
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.store.berkeleydb.keys.MessageContentKey_4

Copyright © 2018 www.massapicom. 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.