Package com.anylogic.engine.presentation
- java.lang.Object
- com.anylogic.engine.presentation.NetworkActivityMonitorImpl
- All Implemented Interfaces:
com.anylogic.engine.internal.network.NetworkActivityMonitor
@AnyLogicInternalAPI public class NetworkActivityMonitorImpl extends Object implements com.anylogic.engine.internal.network.NetworkActivityMonitor
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 |
|---|---|
NetworkActivityMonitorImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
com.anylogic.engine.internal.network.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: |
int | getActiveConnectionsCount() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
public NetworkActivityMonitorImpl()
@AnyLogicInternalAPI public com.anylogic.engine.internal.network.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
}- Specified by:
createNetworkConnectionStatusMonitorin interfacecom.anylogic.engine.internal.network.NetworkActivityMonitor- See Also:
@AnyLogicInternalAPI public 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.
- Specified by:
getActiveConnectionsCountin interfacecom.anylogic.engine.internal.network.NetworkActivityMonitor- Returns:
- the number of active connections