Package org.activemq.io.impl

Examples of org.activemq.io.impl.AbstractPacketMarshaller


    public int getCurrentWireFormatVersion() {
        return AbstractDefaultWireFormat.WIRE_FORMAT_VERSION;
    }

    public Packet writePacket(Packet packet, DataOutput out) throws IOException, JMSException {
        AbstractPacketMarshaller marshaller = getMarshaller(packet);
        if (marshaller == null) {
            throw new JMSException("No marshaller for packet type: " + packet.getPacketType() + " value: " + packet);
        }
        out.writeByte(marshaller.getPacketType());
        marshaller.writePacket(packet, out);
        return packet;
    }
View Full Code Here

TOP

Related Classes of org.activemq.io.impl.AbstractPacketMarshaller

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.