Fix table miss flow push
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / protocol / serialization / MatchEntrySerializerRegistry.java
1 /*
2  * Copyright (c) 2016 Pantheon Technologies s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.openflowplugin.api.openflow.protocol.serialization;
10
11 public interface MatchEntrySerializerRegistry {
12
13     /**
14      * Registers match entry serializer.
15
16      * @param key used for deserializer lookup
17      * @param serializer serializer instance
18      */
19     void registerEntrySerializer(MatchEntrySerializerKey key, MatchEntrySerializer serializer);
20
21     /**
22      * Unregisters match entry serializer
23      * @param key used for serializer lookup
24      * @return true if serializer was removed, false if no serializer was found under specified key
25      */
26     boolean unregisterEntrySerializer(MatchEntrySerializerKey key);
27
28 }