Package tigase.disco

Class XMPPServiceCollector

    • Constructor Detail

      • XMPPServiceCollector

        public XMPPServiceCollector()
    • Method Detail

      • isCorrectType

        public boolean isCorrectType​(ServerComponent component)
        Description copied from class: AbstractComponentRegistrator
        Method checks whether the component provides as method parameter is correct type that is implements special interface or extends special class. Result of the method determines whether the component can be added to the internal components collection.
        Specified by:
        isCorrectType in class AbstractComponentRegistrator<XMPPService>
        Parameters:
        component - is a reference to the component being checked.
        Returns:
        a boolean value of true if the component is of a correct type and false otherwise.
      • processPacket

        public void processPacket​(Packet packet,
                                  java.util.Queue<Packet> results)
        Description copied from interface: ServerComponent
        processPacket is a blocking processing method implemented by all components. This method processes packet and returns results instantly without waiting for any resources.
        Specified by:
        processPacket in interface ServerComponent
        Overrides:
        processPacket in class BasicComponent
        Parameters:
        packet - a Packet value