Class ObjectCache<T>

java.lang.Object
org.apache.pulsar.client.util.ObjectCache<T>
All Implemented Interfaces:
Supplier<T>

public class ObjectCache<T> extends Object implements Supplier<T>
  • Constructor Details

    • ObjectCache

      public ObjectCache(Supplier<T> supplier, long cacheDuration, TimeUnit unit)
  • Method Details

    • get

      public T get()
      Specified by:
      get in interface Supplier<T>