AnyLogic AnyLogic
Expand
Font size
  • 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.

Constructor Summary

Constructors 
NetworkActivityMonitorService()  
Constructor Description

Method Summary

All Methods Static Methods Concrete Methods 
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

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

NetworkActivityMonitorService

public NetworkActivityMonitorService()

Method Detail

createNetworkConnectionStatusMonitor

@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:
 try ( NetworkConnectionHandler m = NetworkActivityMonitorService.createNetworkConnectionStatusMonitor() ) {
        // your code accessing network
 }
See Also:
user method to access number of active connections

getActiveConnectionsCount

@AnyLogicInternalAPI
public static int getActiveConnectionsCount()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
Returns:
the number of active connections
How can we improve this article?