Search in sources :

Example 16 with ConsumerId

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

the class MessageDispatchNotificationMarshaller method tightUnmarshal.

/**
 * 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 tightUnmarshal(OpenWireFormat wireFormat, Object o, DataByteArrayInputStream dataIn, BooleanStream bs) throws IOException {
    super.tightUnmarshal(wireFormat, o, dataIn, bs);
    MessageDispatchNotification info = (MessageDispatchNotification) o;
    info.setConsumerId((ConsumerId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
    info.setDestination((ActiveMQDestination) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
    info.setDeliverySequenceId(tightUnmarshalLong(wireFormat, dataIn, bs));
    info.setMessageId((MessageId) tightUnmarsalNestedObject(wireFormat, dataIn, bs));
}
Also used : MessageDispatchNotification(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.MessageDispatchNotification)

Example 17 with ConsumerId

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

the class MessageDispatchNotificationMarshaller 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);
    MessageDispatchNotification info = (MessageDispatchNotification) o;
    info.setConsumerId((ConsumerId) looseUnmarsalCachedObject(wireFormat, dataIn));
    info.setDestination((ActiveMQDestination) looseUnmarsalCachedObject(wireFormat, dataIn));
    info.setDeliverySequenceId(looseUnmarshalLong(wireFormat, dataIn));
    info.setMessageId((MessageId) looseUnmarsalNestedObject(wireFormat, dataIn));
}
Also used : MessageDispatchNotification(io.fabric8.gateway.handlers.detecting.protocol.openwire.command.MessageDispatchNotification)

Aggregations

ConsumerId (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.ConsumerId)5 BrokerId (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.BrokerId)4 ConsumerControl (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.ConsumerControl)2 ConsumerInfo (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.ConsumerInfo)2 Message (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.Message)2 MessageAck (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.MessageAck)2 MessageDispatch (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.MessageDispatch)2 MessageDispatchNotification (io.fabric8.gateway.handlers.detecting.protocol.openwire.command.MessageDispatchNotification)2