Package com.anylogic.engine.presentation
- java.lang.Object
-
- com.anylogic.engine.presentation.NetworkActivityMonitorService
@AnyLogicInternalAPI public class NetworkActivityMonitorService extends java.lang.Object
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
NetworkActivityMonitorService() |
|
Constructor | Description |
---|
static NetworkConnectionHandler |
createNetworkConnectionStatusMonitor() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is designed for various places where connections are created. Usage: |
static int |
getActiveConnectionsCount() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
Modifier and Type | Method | Description |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public NetworkActivityMonitorService()
@AnyLogicInternalAPI public static NetworkConnectionHandler createNetworkConnectionStatusMonitor()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
It is designed for various places where connections are created.
Usage:
it may be removed/renamed in future.
It is designed for various places where connections are created.
Usage:
try ( NetworkConnectionHandler m = NetworkActivityMonitorService.createNetworkConnectionStatusMonitor() ) { // your code accessing network }
@AnyLogicInternalAPI public static int getActiveConnectionsCount()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
- Returns:
- the number of active connections
-
How can we improve this article?
-