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
UpdateMsg
s, in the style of the visitor design pattern.
Classes implementing this interface can query messages in a type-safe manner.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Visits anAddMsg
message.void
Visits anDeleteMsg
message.void
visit
(ModifyDNMsg modifyDnMessage) Visits anModifyDNMsg
message.void
Visits anModifyMsg
message.void
visit
(ReplicaOfflineMsg replicaOfflineMessage) Visits anReplicaOfflineMsg
message.
-
Method Details
-
visit
Visits anAddMsg
message.- Parameters:
addMessage
- TheAddMsg
message.- Throws:
E
- If an exception occurs during the visit.
-
visit
Visits anDeleteMsg
message.- Parameters:
deleteMessage
- TheDeleteMsg
message.- Throws:
E
- If an exception occurs during the visit.
-
visit
Visits anModifyDNMsg
message.- Parameters:
modifyDnMessage
- TheModifyDNMsg
message.- Throws:
E
- If an exception occurs during the visit.
-
visit
Visits anModifyMsg
message.- Parameters:
modifyMessage
- TheModifyMsg
message.- Throws:
E
- If an exception occurs during the visit.
-
visit
Visits anReplicaOfflineMsg
message.- Parameters:
replicaOfflineMessage
- TheReplicaOfflineMsg
message.- Throws:
E
- If an exception occurs during the visit.
-