Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.metadata.LazyMetadataValue.CacheStrategy Enum Reference

Public Attributes

 CACHE_AFTER_FIRST_EVAL
 
 NEVER_CACHE
 
 CACHE_ETERNALLY
 

Detailed Description

Describes possible caching strategies for metadata.

Definition at line 102 of file LazyMetadataValue.java.

Member Data Documentation

org.bukkit.metadata.LazyMetadataValue.CacheStrategy.CACHE_AFTER_FIRST_EVAL

Once the metadata value has been evaluated, do not re-evaluate the value until it is manually invalidated.

Definition at line 107 of file LazyMetadataValue.java.

Referenced by org.bukkit.metadata.LazyMetadataValue.LazyMetadataValue().

org.bukkit.metadata.LazyMetadataValue.CacheStrategy.CACHE_ETERNALLY

Once the metadata value has been evaluated, do not re-evaluate the value in spite of manual invalidation.

Definition at line 118 of file LazyMetadataValue.java.

Referenced by org.bukkit.metadata.LazyMetadataValue.invalidate().

org.bukkit.metadata.LazyMetadataValue.CacheStrategy.NEVER_CACHE

Re-evaluate the metadata item every time it is requested

Definition at line 112 of file LazyMetadataValue.java.


The documentation for this enum was generated from the following file: