com.h3c.of.ctl.flow

## Interface FlowEvent

- All Superinterfaces:
    Event, TypedEvent<FlowEventType>

      public interface FlowEvent
      extends TypedEvent<FlowEventType>

  Encapsulates a flow-related event.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `DataPathId` | `dpid()` Returns the associated datapath ID.
    `OfmFlowMod` | `flowMod()` Returns the FlowMod message that was pushed (or attempted).
    `OfmFlowRemoved` | `flowRemoved()` Returns the FlowRemoved message that was received from the datapath.

    - ### Methods inherited from interface com.h3c.util.event.TypedEvent

      `ts, type`

- - ### Method Detail

    - #### dpid

          DataPathId dpid()

      Returns the associated datapath ID.
      Returns:
        the datapath ID

    - #### flowMod

          OfmFlowMod flowMod()

      Returns the FlowMod message that was pushed (or attempted). If the event type is not `FLOW_MOD_PUSHED` or `FLOW_MOD_PUSH_FAILED`, this method returns null.
      Returns:
        the pushed FlowMod

    - #### flowRemoved

          OfmFlowRemoved flowRemoved()

      Returns the FlowRemoved message that was received from the datapath. If the event type is not `FLOW_REMOVED`, this method returns null.
      Returns:
        the FlowRemoved message

Copyright © 2014. All Rights Reserved.