Class RequestIdImpl

  • All Implemented Interfaces:
    RequestId

    public class RequestIdImpl
    extends java.lang.Object
    implements RequestId
    Represents a protocol request id. Currently used to ensure proper sequencing of fragmented messages.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private RequestIdImpl()
      Creates a new instance of CorbaRequestIdImpl
        RequestIdImpl​(int requestId)
      Creates a new instance of CorbaRequestIdImpl
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object requestId)
      Does this CorbaRequestId equal another CorbaRequestId ?
      int getValue()
      Return the value of this CorbaRequestId
      int hashCode()
      Return this CorbaRequestId's hashCode
      boolean isDefined()
      Is there a numeric identifier for this CorbaRequestId ?
      java.lang.String toString()
      String representing this CorbaRequestId
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • value

        private final int value
      • defined

        private final boolean defined
      • UNKNOWN_CORBA_REQUEST_ID

        public static final RequestId UNKNOWN_CORBA_REQUEST_ID
    • Constructor Detail

      • RequestIdImpl

        public RequestIdImpl​(int requestId)
        Creates a new instance of CorbaRequestIdImpl
        Parameters:
        requestId - value of the request ID
      • RequestIdImpl

        private RequestIdImpl()
        Creates a new instance of CorbaRequestIdImpl
    • Method Detail

      • getValue

        public int getValue()
        Return the value of this CorbaRequestId
        Specified by:
        getValue in interface RequestId
        Returns:
        ID
      • isDefined

        public boolean isDefined()
        Is there a numeric identifier for this CorbaRequestId ?
        Specified by:
        isDefined in interface RequestId
        Returns:
        if a numeric value is defined
      • equals

        public boolean equals​(java.lang.Object requestId)
        Does this CorbaRequestId equal another CorbaRequestId ?
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Return this CorbaRequestId's hashCode
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        String representing this CorbaRequestId
        Overrides:
        toString in class java.lang.Object