Interface TrafficTreatment

  • All Known Implementing Classes:
    DefaultTrafficTreatment

    public interface TrafficTreatment
    Abstraction of network traffic treatment.
    • Method Detail

      • deferred

        List<Instruction> deferred()
        Returns the list of treatment instructions that will be applied further down the pipeline.
        Returns:
        list of treatment instructions
      • immediate

        List<Instruction> immediate()
        Returns the list of treatment instructions that will be applied immediately.
        Returns:
        list of treatment instructions
      • allInstructions

        List<Instruction> allInstructions()
        Returns the list of all instructions in the treatment, both immediate and deferred.
        Returns:
        list of treatment instructions
      • clearedDeferred

        boolean clearedDeferred()
        Whether the deferred treatment instructions will be cleared by the device.
        Returns:
        a boolean
      • writeMetadata

        Instructions.MetadataInstruction writeMetadata()
        Returns the metadata instruction if there is one.
        Returns:
        a metadata instruction that may be null
      • metered

        Instructions.MeterInstruction metered()
        Returns the meter instruction if there is one.
        Returns:
        a meter instruction that may be a null.