Package org.activemq.message.util

Examples of org.activemq.message.util.ByteArrayCompression


                + sessionId + ")"));
        this.messageExecutor.setOptimizedMessageDispatch(optimizedDispatch);
        connection.addSession(this);
        stats = new JMSSessionStatsImpl(producers, consumers);
        this.consumerDispatchState = CONSUMER_DISPATCH_UNSET;
        this.compression = new ByteArrayCompression();
        this.compression.setCompressionLevel(theConnection.getMessageCompressionLevel());
        this.compression.setCompressionStrategy(theConnection.getMessageCompressionStrategy());
        this.compression.setCompressionLimit(theConnection.getMessageCompressionLimit());
       
        this.fragmentation = new ByteArrayFragmentation();
View Full Code Here


     */
    public final void buildBodyFromBytes() throws IOException {
        if (bodyAsBytes != null) {
            //inflate bodyAsBytes if needed
            if (ByteArrayCompression.isCompressed(bodyAsBytes)){
                ByteArrayCompression compression = new ByteArrayCompression();
                bodyAsBytes = compression.inflate(bodyAsBytes);
            }
            ByteArrayInputStream bytesIn = new ByteArrayInputStream(bodyAsBytes.getBuf(),bodyAsBytes.getOffset(),bodyAsBytes.getLength());
            DataInputStream dataIn = new DataInputStream(bytesIn);
            readBody(dataIn);
            dataIn.close();
View Full Code Here

        }
        try {
            ByteArray data = super.getBodyAsBytes();
            if (this.dataIn == null && data != null) {
                if (ByteArrayCompression.isCompressed(data)){
                    ByteArrayCompression compression = new ByteArrayCompression();
                    data = compression.inflate(data);
                }
                ByteArrayInputStream bytesIn = new ByteArrayInputStream(data.getBuf(),data.getOffset(),data.getLength());
                this.dataIn = new DataInputStream(bytesIn);
            }
        }
View Full Code Here

        }
        try {
            ByteArray data = super.getBodyAsBytes();
            if (this.dataIn == null && data != null) {
                if (ByteArrayCompression.isCompressed(data)){
                    ByteArrayCompression compression = new ByteArrayCompression();
                    data = compression.inflate(data);
                }
                ByteArrayInputStream bytesIn = new ByteArrayInputStream(data.getBuf(),data.getOffset(),data.getLength());
                this.dataIn = new DataInputStream(bytesIn);
            }
        }
View Full Code Here

TOP

Related Classes of org.activemq.message.util.ByteArrayCompression

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.