Package eu.mosaic_cloud.components.core

Examples of eu.mosaic_cloud.components.core.ChannelMessageType


    packet.position (metaDataEndPosition + 1);
    Preconditions.checkArgument ((metaDataValue != null) && (metaDataValue instanceof Map), "unexpected meta-data value: `%s`", metaDataValue);
    final Map<String, Object> metaData = (Map<String, Object>) metaDataValue;
    final Object messageTypeValue = metaData.remove ("__type__");
    Preconditions.checkArgument ((messageTypeValue != null) && (messageTypeValue instanceof String), "unexpected message type value: `%s`", messageTypeValue);
    final ChannelMessageType messageType;
    if ("exchange".equals (ChannelMessageType.Exchange.identifier))
      messageType = ChannelMessageType.Exchange;
    else
      messageType = null;
    Preconditions.checkArgument (messageType != null, "invalid message type: `%s`", messageTypeValue);
View Full Code Here

TOP

Related Classes of eu.mosaic_cloud.components.core.ChannelMessageType

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.