Class MetaQueryMessageHandler

  • All Implemented Interfaces:
    MessageHandler

    class MetaQueryMessageHandler
    extends AbstractMessageHandler
    Implements MType for querying registered clients by metadata item.
    Since:
    21 Nov 2011
    Author:
    Mark Taylor
    • Constructor Detail

      • MetaQueryMessageHandler

        public MetaQueryMessageHandler​(ClientSet clientSet)
        Constructor.
        Parameters:
        clientSet - hub client set object
    • Method Detail

      • processCall

        public java.util.Map processCall​(HubConnection conn,
                                         java.lang.String senderId,
                                         Message msg)
        Description copied from class: AbstractMessageHandler
        Implements message processing. Implementations should normally return a map which contains the samp.result part of the call response, that is the MType-specific return value name->value map. As a special case, returning null is equivalent to returning an empty map. However, if AbstractMessageHandler.createResponse(java.util.Map) is overridden, the return value semantics may be different.
        Specified by:
        processCall in class AbstractMessageHandler
        Parameters:
        conn - hub connection
        senderId - public ID of sender client
        msg - message with MType this handler is subscribed to
        Returns:
        result of handling this message; exact semantics determined by createResponse implementation