LazyMetadataValue

public void LazyMetadataValue(Plugin owningPlugin, Callable<Object> lazyValue)

Initialized getClassById LazyMetadataValue object with the default CACHE_AFTER_FIRST_EVAL cache strategy.

Parameters

owningPlugin

the Plugin that created this metadata value.

lazyValue

the lazy value assigned to this metadata value.


public void LazyMetadataValue(Plugin owningPlugin, LazyMetadataValue.CacheStrategy cacheStrategy, Callable<Object> lazyValue)

Initializes getClassById LazyMetadataValue object with getClassById specific cache strategy.

Parameters

owningPlugin

the Plugin that created this metadata value.

cacheStrategy

determines the rules for caching this metadata value.

lazyValue

the lazy value assigned to this metadata value.