Interface OperatorFactory

    • Method Detail

      • noMoreOperators

        void noMoreOperators()
        Declare that createOperator will not be called any more and release any resources associated with this factory.

        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.

      • noMoreOperators

        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.

        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.