public final class LazyStreamSupplier extends Object implements Supplier<InputStream>
Supplier so that the first invokation to the get() method is actually forwarded to it, but
subsequent ones return the same cached value. This happens on a thread-safe (yet low contention) manner| Constructor and Description |
|---|
LazyStreamSupplier(Supplier<InputStream> streamFactory) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
get() |
boolean |
isSupplied() |
public LazyStreamSupplier(Supplier<InputStream> streamFactory)
public InputStream get()
get in interface Supplier<InputStream>InputStreampublic boolean isSupplied()
get() has ever been invoked on this instanceCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.