Class ExternalSupplier<T>

java.lang.Object
com.couchbase.client.core.env.ExternalSupplier<T>
All Implemented Interfaces:
Supplier<T>

@Deprecated public class ExternalSupplier<T> extends Object implements Supplier<T>
Deprecated.
Please use Supplier instead. In internal Couchbase code, please use OwnedOrExternal.external(Object) instead.
This supplier signals the entity passed in is not owned.

This class can be used with care, but usually it is better to just use the java 8 supplier interface directly or implement your own.

  • Constructor Details

    • ExternalSupplier

      public ExternalSupplier(T value)
      Deprecated.
  • Method Details

    • get

      public T get()
      Deprecated.
      Specified by:
      get in interface Supplier<T>
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object