public abstract class AbstractResponseCollector extends Object implements ResponseCollector
Constructor and Description |
---|
AbstractResponseCollector() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
processFailure(BaseStunMessageEvent event)
Notifies this ResponseCollector that a transaction described by
the specified BaseStunMessageEvent has failed.
|
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.
|
void |
processUnreachable(StunFailureEvent event)
Notifies this collector that the destination of the request has been
determined to be unreachable and that the request should be considered
unanswered.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processResponse
protected abstract void processFailure(BaseStunMessageEvent event)
event
- the BaseStunMessageEvent which describes the failed
transaction and the runtime type of which specifies the failure reasonpublic void processTimeout(StunTimeoutEvent event)
processTimeout
in interface ResponseCollector
event
- the StunTimeoutEvent containing a reference to the
transaction that has just failed.public void processUnreachable(StunFailureEvent event)
event
- the StunFailureEvent containing the
PortUnreachableException that has just occurred.Copyright © 2018. All rights reserved.