public final class LuaCache extends Object
Constructor and Description |
---|
LuaCache() |
Modifier and Type | Method and Description |
---|---|
static void |
clearPackage(String packageName)
Remove lua package from cache and unload package from non-active
lua instances.
|
static void |
clearPackages()
Remove all lua packages and non-active lua instances from cache.
|
static com.aerospike.client.lua.LuaInstance |
getInstance()
Return lua instance from a pool.
|
static org.luaj.vm2.Prototype |
loadPackageFromFile(String packageName)
Load lua package from a file.
|
static org.luaj.vm2.Prototype |
loadPackageFromResource(ClassLoader resourceLoader,
String resourcePath,
String packageName)
Load lua package from a resource.
|
static void |
putInstance(com.aerospike.client.lua.LuaInstance instance)
Put lua instance back into pool if pool size (LuaConfig.InstancePoolSize)
would not be exceeded.
|
public static final com.aerospike.client.lua.LuaInstance getInstance() throws AerospikeException
AerospikeException
public static final void putInstance(com.aerospike.client.lua.LuaInstance instance)
public static final org.luaj.vm2.Prototype loadPackageFromFile(String packageName) throws AerospikeException
AerospikeException
public static final org.luaj.vm2.Prototype loadPackageFromResource(ClassLoader resourceLoader, String resourcePath, String packageName) throws AerospikeException
AerospikeException
public static final void clearPackage(String packageName)
public static final void clearPackages()
Copyright ? 2012–2018 Aerospike, Inc. All rights reserved.