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 Summary

    Modifier and Type
    Method
    Description
    void
    visit(AddMsg addMessage)
    Visits an AddMsg message.
    void
    visit(DeleteMsg deleteMessage)
    Visits an DeleteMsg message.
    void
    visit(ModifyDNMsg modifyDnMessage)
    Visits an ModifyDNMsg message.
    void
    visit(ModifyMsg modifyMessage)
    Visits an ModifyMsg message.
    void
    visit(ReplicaOfflineMsg replicaOfflineMessage)
    Visits an ReplicaOfflineMsg message.
  • Method Details

    • visit

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

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

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

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

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