Interface DSNoData

  • All Superinterfaces:
    DSPacket, DSSerializable

    public interface DSNoData
    extends DSPacket

    This class can be used to send a 'NoData' message to a DataSource peer that signals that an object has not been found and the reason why. This is most likely to occur when an active DataSource need to indicate, having received a request, that data is not available.

    Should a request come in for which there is no data then a NoData message should be sent. The flags ( F_NOTFOUND, F_READDENY, F_WRITEDENY, F_DELETEOBJECT, F_UNAVAILABLE ) that may be sent are mutually exclusive.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int F_DELETEOBJECT
      Instruction to delete this object
      static int F_NOTFOUND
      Indicates that the object is not found.
      static int F_READDENY
      Indicates that there is no permission to read this object.
      static int F_UNAVAILABLE
      Indicates that the object is unavailable at the current time
      static int F_WRITEDENY
      Indicates that there is no permission to write to this object
    • Field Detail

      • F_NOTFOUND

        static final int F_NOTFOUND
        Indicates that the object is not found.
        See Also:
        Constant Field Values
      • F_READDENY

        static final int F_READDENY
        Indicates that there is no permission to read this object.
        See Also:
        Constant Field Values
      • F_WRITEDENY

        static final int F_WRITEDENY
        Indicates that there is no permission to write to this object
        See Also:
        Constant Field Values
      • F_DELETEOBJECT

        static final int F_DELETEOBJECT
        Instruction to delete this object
        See Also:
        Constant Field Values
      • F_UNAVAILABLE

        static final int F_UNAVAILABLE
        Indicates that the object is unavailable at the current time
        See Also:
        Constant Field Values
    • Method Detail

      • getSubject

        java.lang.String getSubject()

        Gets this object's subject.

        Returns:
        The subject name.