AnyLogic
Expand
Font size
All Implemented Interfaces:
com.anylogic.engine.internal.gis.ICache<K,V>

@AnyLogicInternalAPI
public class MapDBCache<K,V>
extends Object
implements com.anylogic.engine.internal.gis.ICache<K,V>
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.
Author:
AnyLogic North America, LLC https://anylogic.com

Field Summary

Fields inherited from interface com.anylogic.engine.internal.gis.ICache

ONE_DAY_IN_MILLISECONDS

Constructor Summary

ConstructorDescription
MapDBCache(Map<K,V> map, boolean readOnly, com.anylogic.engine.gis.AnyLogicMapDB.DBChangeListener autoCommitter) 

Method Summary

Modifier and TypeMethodDescription
Vget(K key) 
voidput(K key, V value) 
Vremove(K key) 

Methods inherited from class java.lang.Object

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

Constructor Details

MapDBCache

public MapDBCache(Map<K,V> map,
 boolean readOnly,
 com.anylogic.engine.gis.AnyLogicMapDB.DBChangeListener autoCommitter)

Method Details

put

public void put(K key,
 V value)
Specified by:
put in interface com.anylogic.engine.internal.gis.ICache<K,V>

get

public V get(K key)
Specified by:
get in interface com.anylogic.engine.internal.gis.ICache<K,V>

remove

public V remove(K key)
Specified by:
remove in interface com.anylogic.engine.internal.gis.ICache<K,V>