Module org.snmp4j
Package org.snmp4j

Class Snmp.PendingRequest<A extends Address>

    • Method Detail

      • registerRequest

        protected void registerRequest​(PduHandle handle)
      • useNextPDU

        public boolean useNextPDU()
      • insertFirstPDU

        public void insertFirstPDU​(PDU firstPDU)
      • responseReceived

        public void responseReceived()
      • getNextPDU

        public PDU getNextPDU()
      • setNextPDU

        public void setNextPDU​(PDU nextPDU)
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException
      • pduHandleAssigned

        public void pduHandleAssigned​(PduHandle handle,
                                      PDU pdu)
        Description copied from interface: PduHandleCallback
        A new PduHandle has been created for a PDU. This event callback notification can be used to get informed about a new PduHandle (just) before a PDU has been sent out.
        Specified by:
        pduHandleAssigned in interface PduHandleCallback<A extends Address>
        Parameters:
        handle - a PduHandle instance that uniquely identifies a request - thus in most cases the request ID.
        pdu - the request PDU for which the handle has been created.
      • run

        public void run()
        Process retries of a pending request.
        Specified by:
        run in interface java.lang.Runnable
        Specified by:
        run in class java.util.TimerTask
      • setFinished

        public boolean setFinished()
      • setMaxRequestStatus

        public void setMaxRequestStatus​(int maxRequestStatus)
      • getMaxRequestStatus

        public int getMaxRequestStatus()
      • isResponseReceived

        public boolean isResponseReceived()
      • cancel

        public boolean cancel()
        Cancels the request and clears all internal fields by setting them to null.
        Overrides:
        cancel in class java.util.TimerTask
        Returns:
        true if cancellation was successful.