Package com.anylogic.engine.presentation
- java.lang.Object
- com.anylogic.engine.presentation.NetworkActivityMonitorService
@AnyLogicInternalAPI public class NetworkActivityMonitorService extends 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.
Constructor | Description |
---|---|
NetworkActivityMonitorService() |
Modifier and Type | Method | 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. |
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