Class ArchiveMessage

    • Constructor Detail

      • ArchiveMessage

        protected ArchiveMessage​(ChannelID to,
                                 ChannelID replyTo)
                          throws ArgumentNotValid
        Creates a new ArchiveMessage.
        Parameters:
        to - the initial receiver of the message
        replyTo - the initial sender of the message
        Throws:
        ArgumentNotValid - if to==replyTo or there is a null parameter.
    • Method Detail

      • accept

        public abstract void accept​(ArchiveMessageVisitor v)
        Should be implemented as a part of the visitor pattern. e.g.: public void accept(ArchiveMessageVisitor v) { v.visit(this); }
        Parameters:
        v - A message visitor
        See Also:
        ArchiveMessageVisitor