-
- All Implemented Interfaces:
-
org.ice4j.stack.ErrorHandler
public class NetAccessManager implements ErrorHandlerManages Connectors and MessageProcessingTask execution and pooling. This class serves as a layer that masks network primitives and provides equivalent STUN abstractions. Instances that operate with the NetAccessManager are only supposed to understand STUN talk and shouldn't be aware of datagrams sockets, and etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNetAccessManager.SocketNotFoundException
-
Method Summary
Modifier and Type Method Description PeerUdpMessageEventHandlergetUdpMessageEventHandler()Gets the PeerUdpMessageEventHandler of this NetAccessManager which is to be notified when incoming UDP messages have been processed and are ready for delivery. ChannelDataEventHandlergetChannelDataMessageEventHandler()Gets the ChannelDataEventHandler of this NetAccessManager which is to be notified when incoming ChannelData messages have been processed and are ready for delivery. voidhandleError(String message, Throwable error)A civilized way of not caring! voidhandleFatalError(Runnable callingThread, String message, Throwable error)Clears the faulty thread and reports the problem. voidstop()Stops NetAccessManager and all of its active MessageProcessingTask. -
-
Method Detail
-
getUdpMessageEventHandler
PeerUdpMessageEventHandler getUdpMessageEventHandler()
Gets the PeerUdpMessageEventHandler of this NetAccessManager which is to be notified when incoming UDP messages have been processed and are ready for delivery.
-
getChannelDataMessageEventHandler
ChannelDataEventHandler getChannelDataMessageEventHandler()
Gets the ChannelDataEventHandler of this NetAccessManager which is to be notified when incoming ChannelData messages have been processed and are ready for delivery.
-
handleError
void handleError(String message, Throwable error)
A civilized way of not caring!
- Parameters:
message- a description of the errorerror- the error that has occurred
-
handleFatalError
void handleFatalError(Runnable callingThread, String message, Throwable error)
Clears the faulty thread and reports the problem.
- Parameters:
callingThread- the thread where the error occurred.message- A description of the errorerror- The error itself
-
stop
void stop()
Stops NetAccessManager and all of its active MessageProcessingTask.
-
-
-
-