Sho SHIMIZU | 95cc1fb | 2014-08-18 11:32:10 -0700 | [diff] [blame] | 1 | package net.onrc.onos.core.matchaction.action; |
| 2 | |
| 3 | /** |
| 4 | * An action which does not affect anything at all. |
| 5 | * In other words, NOP. |
| 6 | * |
| 7 | * This action can be used for intent only. Flow Manager and Match Action Manager |
| 8 | * may not handle correctly. |
| 9 | */ |
| 10 | public final class NullAction implements Action { |
| 11 | private static final NullAction INSTANCE = new NullAction(); |
| 12 | |
| 13 | private NullAction() {} |
| 14 | |
| 15 | /** |
| 16 | * Returns singleton of this class. |
| 17 | * |
| 18 | * @return singleton of this class |
| 19 | */ |
| 20 | static NullAction getInstance() { |
| 21 | return INSTANCE; |
| 22 | } |
| 23 | } |