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

Field Summary

Fields inherited from interface com.anylogic.engine.internal.network.NetworkActivityMonitor

NONE

Constructor Summary

ConstructorDescription
NetworkActivityMonitorImpl() 

Method Summary

Modifier and TypeMethodDescription
com.anylogic.engine.internal.network.NetworkConnectionHandlercreateNetworkConnectionStatusMonitor()
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:
intgetActiveConnectionsCount()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

Methods inherited from class java.lang.Object

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

Constructor Details

NetworkActivityMonitorImpl

public NetworkActivityMonitorImpl()

Method Details

createNetworkConnectionStatusMonitor

@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:
 try ( NetworkConnectionHandler m = NetworkActivityMonitorService.createNetworkConnectionStatusMonitor() ) {
        // your code accessing network
 }
Specified by:
createNetworkConnectionStatusMonitor in interface com.anylogic.engine.internal.network.NetworkActivityMonitor
See Also:

getActiveConnectionsCount

@AnyLogicInternalAPI
public int getActiveConnectionsCount()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
Specified by:
getActiveConnectionsCount in interface com.anylogic.engine.internal.network.NetworkActivityMonitor
Returns:
the number of active connections