- AO Industries, Inc.
DefaultUdpPortMonitorCreates a new default UDP monitor.
cancelpublic void cancel()Description copied from class:
Cancels this port method on a best effort basis. This will not necessarily cause the checkPort method to return immediately. This should only be used once the result of checkPort is no longer relevant, such as after a timeout. Some monitors may still perform their task arbitrarily long after cancel has been called.
It is critical that subclass implementations of this method not block in any way.
checkPortDescription copied from class:
PortMonitorChecks the port. This may take arbitrarily long to complete, and any timeout should be provided externally and call the
cancelmethod. If any error occurs, must throw an exception.