F
- the type of the inputT
- the type of the output@SPI
public abstract class TenantAwareFunction<F,T>
extends java.lang.Object
implements java.util.function.Function<F,T>
Modifier | Constructor and Description |
---|---|
protected |
TenantAwareFunction() |
protected |
TenantAwareFunction(io.spine.core.TenantId tenantId) |
Modifier and Type | Method and Description |
---|---|
T |
execute(F input)
Returns the result of applying the function to the passed
input . |
protected TenantAwareFunction() throws java.lang.IllegalStateException
java.lang.IllegalStateException
protected TenantAwareFunction(io.spine.core.TenantId tenantId)
public T execute(F input)
input
.
The execution goes through the following steps:
Function.apply(Object)
method is called.