NOISIF Platform
Toggle table of contents
80ccce4
java
Target filter
java
Switch theme
Search in API
Skip to content
NOISIF Platform
NSL ZCache
/
xyz.noisif.nsl.zcache.lru
/
ConcurrentLruNativeStorage
Concurrent
Lru
Native
Storage
open
class
ConcurrentLruNativeStorage
:
GenericNativeStorage
Members
Constructors
Concurrent
Lru
Native
Storage
Link copied to clipboard
private
constructor
(
builder
:
ConcurrentLruNativeStorage.Builder
)
Types
Builder
Link copied to clipboard
open
class
Builder
:
GenericNativeStorage.AbstractBuilder
<
ConcurrentLruNativeStorage.Builder
>
Properties
current
Bytes
Link copied to clipboard
private
open
var
currentBytes
:
Long
head
Link copied to clipboard
private
val
head
:
Node
initial
Capacity
Link copied to clipboard
protected
val
initialCapacity
:
Int
initialized
Link copied to clipboard
private
val
initialized
:
AtomicBoolean
lock
Link copied to clipboard
private
val
lock
:
ReentrantLock
log
Link copied to clipboard
protected
val
log
:
Logger
map
Link copied to clipboard
private
val
map
:
ConcurrentMap
<
NativeStorageKey
,
Node
>
max
Bytes
Link copied to clipboard
protected
val
maxBytes
:
Long
memory
Source
Link copied to clipboard
protected
val
memorySource
:
String
running
Link copied to clipboard
private
val
running
:
AtomicBoolean
tail
Link copied to clipboard
private
val
tail
:
Node
Functions
add
Node
To
Head
Link copied to clipboard
private
open
fun
addNodeToHead
(
node
:
Node
)
builder
Link copied to clipboard
open
fun
builder
(
)
:
ConcurrentLruNativeStorage.Builder
close
Link copied to clipboard
fun
close
(
)
empty
Link copied to clipboard
open
fun
empty
(
)
fetch
Link copied to clipboard
open
fun
fetch
(
key
:
NativeStorageKey
)
:
NativeStoragePayload
on
Start
Link copied to clipboard
protected
abstract
fun
onStart
(
)
protected
open
fun
onStart
(
)
on
Stop
Link copied to clipboard
protected
abstract
fun
onStop
(
)
protected
open
fun
onStop
(
)
remove
Link copied to clipboard
open
fun
remove
(
key
:
NativeStorageKey
)
open
fun
remove
(
keys
:
Array
<
NativeStorageKey
>
)
remove
Node
Link copied to clipboard
private
open
fun
removeNode
(
node
:
Node
)
start
Link copied to clipboard
fun
start
(
)
store
Link copied to clipboard
open
fun
store
(
key
:
NativeStorageKey
,
rawData
:
Array
<
Byte
>
)
translate
Exception
Link copied to clipboard
protected
open
fun
translateException
(
ex
:
Exception
)
:
RuntimeException