Interface ConnectionAwareMessage

All Superinterfaces:
SerializableMessage
All Known Implementing Classes:
IPTagGet

public interface ConnectionAwareMessage
extends SerializableMessage
An interface that is applied to a message when it wants to be told what connection it is being sent down prior to it being sent. This is intended to allow information about the connection to be used in producing the parsed response object.
Author:
Donal Fellows
  • Method Summary

    Modifier and Type Method Description
    void setConnection​(SCPConnection connection)
    Tell the object what connection it is being sent on.

    Methods inherited from interface uk.ac.manchester.spinnaker.messages.SerializableMessage

    addToBuffer
  • Method Details

    • setConnection

      void setConnection​(SCPConnection connection)
      Tell the object what connection it is being sent on. This will usually (except during testing) be called prior to issuing the sequence number, but the information provided should not be used until the response is being parsed.
      Parameters:
      connection - The connection. Should not be modified by this method.