Class ClusterListener

    • Field Detail

      • cluster

        protected CatalinaCluster cluster
        The string manager for this package.
    • Constructor Detail

      • ClusterListener

        public ClusterListener()
    • Method Detail

      • messageReceived

        public final void messageReceived​(java.io.Serializable msg,
                                          Member member)
        Description copied from interface: ChannelListener
        Receive a message from the channel
        Specified by:
        messageReceived in interface ChannelListener
        Parameters:
        msg - Serializable
        member - - the source of the message
      • accept

        public final boolean accept​(java.io.Serializable msg,
                                    Member member)
        Description copied from interface: ChannelListener
        Invoked by the channel to determine if the listener will process this message or not.
        Specified by:
        accept in interface ChannelListener
        Parameters:
        msg - Serializable
        member - Member
        Returns:
        boolean
      • messageReceived

        public abstract void messageReceived​(ClusterMessage msg)
        Callback from the cluster, when a message is received, The cluster will broadcast it invoking the messageReceived on the receiver.
        Parameters:
        msg - ClusterMessage - the message received from the cluster
      • accept

        public abstract boolean accept​(ClusterMessage msg)
        Accept only SessionIDMessages
        Parameters:
        msg - ClusterMessage
        Returns:
        boolean - returns true to indicate that messageReceived should be invoked. If false is returned, the messageReceived method will not be invoked.