Class ForwardedMessage

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable

    public final class ForwardedMessage
    extends SystemMessage
    Message used to forward a client request to the current leader when the first timeout for this request is triggered (see RequestTimer).
    See Also:
    Serialized Form
    • Constructor Detail

      • ForwardedMessage

        public ForwardedMessage()
      • ForwardedMessage

        public ForwardedMessage​(int senderId,
                                TOMMessage request)
    • Method Detail

      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Overrides:
        writeExternal in class SystemMessage
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Overrides:
        readExternal in class SystemMessage
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException