Package 

Interface ResponseCollector

  • All Implemented Interfaces:

    
    public interface ResponseCollector
    
                        

    The interface is used as a callback when sending a request. The response collector is then used as a means of dispatching the response.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void processResponse(StunResponseEvent event) Dispatch the specified response.
      abstract void processTimeout(StunTimeoutEvent event) Notifies this collector that no response had been received after repeated retransmissions of the original request (as described by rfc3489) and that the request should be considered unanswered.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • processTimeout

         abstract void processTimeout(StunTimeoutEvent event)

        Notifies this collector that no response had been received after repeated retransmissions of the original request (as described by rfc3489) and that the request should be considered unanswered.

        Parameters:
        event - the StunTimeoutEvent containing a reference to the transaction that has just failed.