public interface OperatorFactory
Modifier and Type | Method and Description |
---|---|
Operator |
createOperator(DriverContext driverContext) |
OperatorFactory |
duplicate() |
void |
noMoreOperators()
Declare that createOperator will not be called any more and release
any resources associated with this factory.
|
default void |
noMoreOperators(Lifespan lifespan)
Declare that createOperator will not be called any more for the specified Lifespan,
and release any resources associated with this factory.
|
Operator createOperator(DriverContext driverContext)
void noMoreOperators()
This method will be called only once. Implementation doesn't need to worry about duplicate invocations.
It is guaranteed that this will only be invoked after noMoreOperators(Lifespan)
has been invoked for all applicable driver groups.
default void noMoreOperators(Lifespan lifespan)
This method will be called only once for each Lifespan. Implementation doesn't need to worry about duplicate invocations.
It is guaranteed that this method will be invoked for all applicable driver groups
before noMoreOperators()
is invoked.
OperatorFactory duplicate()
Copyright © 2012–2022. All rights reserved.