Search in sources :

Example 11 with ProducerId

use of io.fabric8.gateway.handlers.detecting.protocol.openwire.command.ProducerId in project fabric8 by jboss-fuse.

the class MessageIdMarshaller method looseUnmarshal.

/**
 * Un-marshal an object instance from the data input stream
 *
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataByteArrayInputStream dataIn) throws IOException {
    super.looseUnmarshal(wireFormat, o, dataIn);
    MessageId info = (MessageId) o;
    info.setProducerId((ProducerId) looseUnmarsalCachedObject(wireFormat, dataIn));
    info.setProducerSequenceId(looseUnmarshalLong(wireFormat, dataIn));
    info.setBrokerSequenceId(looseUnmarshalLong(wireFormat, dataIn));
}
Also used : MessageId(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.MessageId)

Aggregations

ProducerId (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.ProducerId)5 BrokerId (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.BrokerId)4 Message (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.Message)2 MessageId (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.MessageId)2 ProducerInfo (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.ProducerInfo)2