Interface NextObjective.Builder

    • Method Detail

      • withId

        NextObjective.Builder withId​(int nextId)
        Specifies the id for this next objective.
        Parameters:
        nextId - an integer
        Returns:
        a next objective builder
      • addTreatment

        NextObjective.Builder addTreatment​(NextTreatment nextTreatment)
        Adds a next treatment to this next step.
        Parameters:
        nextTreatment - a next treatment
        Returns:
        a next step builder
      • withMeta

        NextObjective.Builder withMeta​(TrafficSelector selector)
        Set meta information related to this next objective.
        Parameters:
        selector - match conditions
        Returns:
        an objective builder
      • add

        NextObjective add​(ObjectiveContext context)
        Builds the next objective that will be added. The context will be used to notify the calling application.
        Specified by:
        add in interface Objective.Builder
        Parameters:
        context - an objective context
        Returns:
        a next objective
      • remove

        NextObjective remove​(ObjectiveContext context)
        Builds the next objective that will be removed. The context will be used to notify the calling application.
        Specified by:
        remove in interface Objective.Builder
        Parameters:
        context - an objective context
        Returns:
        a next objective
      • removeFromExisting

        NextObjective removeFromExisting()
        Build the next objective that will be removed, with Objective.Operation REMOVE_FROM_EXISTING.
        Returns:
        a next objective
      • addToExisting

        NextObjective addToExisting​(ObjectiveContext context)
        Builds the next objective that will be added, with Objective.Operation ADD_TO_EXISTING. The context will be used to notify the calling application.
        Parameters:
        context - an objective context
        Returns:
        a next objective
      • removeFromExisting

        NextObjective removeFromExisting​(ObjectiveContext context)
        Builds the next objective that will be removed, with Objective.Operation REMOVE_FROM_EXISTING. The context will be used to notify the calling application.
        Parameters:
        context - an objective context
        Returns:
        a next objective
      • modify

        NextObjective modify​(ObjectiveContext context)
        Build the next objective that will be modified, with Objective.Operation MODIFY. The context will be used to notify the calling application.
        Parameters:
        context - an objective context
        Returns:
        a next objective
      • verify

        NextObjective verify​(ObjectiveContext context)
        Builds the next objective that needs to be verified. The context will be used to notify the calling application.
        Parameters:
        context - an objective context
        Returns:
        a next objective with Objective.Operation VERIFY