Fulfilling

com.phasmidsoftware.lascala.cache.Fulfilling
trait Fulfilling[K, V, M[_]] extends Mappish[K, V, M]

Trait to define the behavior of a (self)-fulfilling cache.

Created by scalaprof on 7/7/16.

Type parameters

K

they key type

V

the value type

Attributes

Graph
Supertypes
trait Mappish[K, V, M]
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def evaluate(k: K): M[V]

Evaluate key k as an M[V]

Evaluate key k as an M[V]

Value parameters

k

the key to be evaluated

Attributes

Returns

a V wrapped in an M

def fulfill(k: K): M[V]

Fulfill the key k as an M[V]

Fulfill the key k as an M[V]

Value parameters

k

the key to be evaluated

Attributes

Returns

a V wrapped in an M

def postFulfillment(k: K, v: V): Unit

method to take action whenever a key value is actually fulfilled.

method to take action whenever a key value is actually fulfilled.

Value parameters

k

the key of the element which has been fulfilled

v

the value of the element which has been fulfilled

Attributes

Concrete methods

def get(k: K): M[V]

Non-blocking call to get the value v from the cache.

Non-blocking call to get the value v from the cache.

Value parameters

k

the key of the element which we wish to get

Attributes

Returns

the value wrapped as a T

Inherited methods

def asMap: Map[K, V]

Attributes

Inherited from:
Mappish
def clear(): Unit

Attributes

Inherited from:
Mappish
def contains(k: K): Boolean

Attributes

Inherited from:
Mappish