Package org.apache.pekko.japi.function
Interface Creator<T>
- All Superinterfaces:
Serializable
A constructor/factory, takes no parameters but creates a new value of type T every call.
Supports throwing
Exception in the create method, which the java.util.function.Supplier counterpart does not.-
Method Summary
-
Method Details
-
create
This method must return a different instance upon every call.- Throws:
Exception
-