T
- the type of the object managed by the initializer class.I
- the type of the initializer class.B
- the type of builder.E
- The exception type thrown by AbstractConcurrentInitializer.initialize()
.public abstract static class AbstractConcurrentInitializer.AbstractBuilder<I extends AbstractConcurrentInitializer<T,E>,T,B extends AbstractConcurrentInitializer.AbstractBuilder<I,T,B,E>,E extends java.lang.Exception> extends AbstractSupplier<I,B,E>
NUL
Constructor and Description |
---|
AbstractBuilder() |
Modifier and Type | Method and Description |
---|---|
FailableConsumer<T,? extends java.lang.Exception> |
getCloser()
Gets the closer consumer called by
AbstractConcurrentInitializer.close() . |
FailableSupplier<T,? extends java.lang.Exception> |
getInitializer()
Gets the initializer supplier called by
AbstractConcurrentInitializer.initialize() . |
B |
setCloser(FailableConsumer<T,? extends java.lang.Exception> closer)
Sets the closer consumer called by
AbstractConcurrentInitializer.close() . |
B |
setInitializer(FailableSupplier<T,? extends java.lang.Exception> initializer)
Sets the initializer supplier called by
AbstractConcurrentInitializer.initialize() . |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, nul
public FailableConsumer<T,? extends java.lang.Exception> getCloser()
AbstractConcurrentInitializer.close()
.AbstractConcurrentInitializer.close()
.public FailableSupplier<T,? extends java.lang.Exception> getInitializer()
AbstractConcurrentInitializer.initialize()
.AbstractConcurrentInitializer.initialize()
.public B setCloser(FailableConsumer<T,? extends java.lang.Exception> closer)
AbstractConcurrentInitializer.close()
.closer
- the consumer called by AbstractConcurrentInitializer.close()
.public B setInitializer(FailableSupplier<T,? extends java.lang.Exception> initializer)
AbstractConcurrentInitializer.initialize()
.initializer
- the supplier called by AbstractConcurrentInitializer.initialize()
.Copyright © 2010 - 2024 Adobe. All Rights Reserved