Interface UpdateMsgVisitor<E extends Exception>

  • Type Parameters:
    E - Type of the exception which can be thrown during the visit.

    public interface UpdateMsgVisitor<E extends Exception>
    A visitor of UpdateMsgs, in the style of the visitor design pattern.

    Classes implementing this interface can query messages in a type-safe manner.

    • Method Detail

      • visit

        void visit​(AddMsg addMessage)
            throws E extends Exception
        Visits an AddMsg message.
        Parameters:
        addMessage - The AddMsg message.
        Throws:
        E - If an exception occurs during the visit.
        E extends Exception
      • visit

        void visit​(DeleteMsg deleteMessage)
            throws E extends Exception
        Visits an DeleteMsg message.
        Parameters:
        deleteMessage - The DeleteMsg message.
        Throws:
        E - If an exception occurs during the visit.
        E extends Exception
      • visit

        void visit​(ModifyDNMsg modifyDnMessage)
            throws E extends Exception
        Visits an ModifyDNMsg message.
        Parameters:
        modifyDnMessage - The ModifyDNMsg message.
        Throws:
        E - If an exception occurs during the visit.
        E extends Exception
      • visit

        void visit​(ModifyMsg modifyMessage)
            throws E extends Exception
        Visits an ModifyMsg message.
        Parameters:
        modifyMessage - The ModifyMsg message.
        Throws:
        E - If an exception occurs during the visit.
        E extends Exception
      • visit

        void visit​(ReplicaOfflineMsg replicaOfflineMessage)
            throws E extends Exception
        Visits an ReplicaOfflineMsg message.
        Parameters:
        replicaOfflineMessage - The ReplicaOfflineMsg message.
        Throws:
        E - If an exception occurs during the visit.
        E extends Exception