Class KeyedHttpDataset<V>

java.lang.Object
com.google.common.cache.CacheLoader<String,CompletableFuture<V>>
net.buildtheearth.terracore.worldgen.dataset.Dataset<String,V>
net.buildtheearth.terracore.worldgen.dataset.KeyedHttpDataset<V>
All Implemented Interfaces:
IDataset<String,V>
Direct Known Subclasses:
ParsingGeoJsonDataset

public abstract class KeyedHttpDataset<V> extends Dataset<String,V>
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.google.common.cache.CacheLoader

    com.google.common.cache.CacheLoader.InvalidCacheLoadException, com.google.common.cache.CacheLoader.UnsupportedLoadingOperationException
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final @NonNull String[]
     

    Fields inherited from class net.buildtheearth.terracore.worldgen.dataset.Dataset

    cache
  • Constructor Summary

    Constructors
    Constructor
    Description
    KeyedHttpDataset(@NonNull String[] urls)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract V
    decode(@NonNull String path, @NonNull io.netty.buffer.ByteBuf data)
     
    load(@NonNull String key)
     
    @NonNull String[]
     

    Methods inherited from class net.buildtheearth.terracore.worldgen.dataset.Dataset

    getAsync

    Methods inherited from class com.google.common.cache.CacheLoader

    asyncReloading, from, from, loadAll, reload

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • urls

      @NonNull protected final @NonNull String[] urls
  • Constructor Details

    • KeyedHttpDataset

      public KeyedHttpDataset(@NonNull @NonNull String[] urls)
  • Method Details