View Javadoc

1   /*
2    * Copyright (c) 2014 Contextream, Inc. 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   package org.opendaylight.lispflowmapping.interfaces.lisp;
9   
10  import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.MapReply;
11  import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.MapRequest;
12  import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.transport.address.TransportAddress;
13  
14  /**
15   * An interface for dealing with a map reply message.
16   */
17  public interface IMapRequestResultHandler {
18      /**
19       * Handle return map-reply message
20       *
21       * @param mapReply
22       *            The map-reply message
23       */
24      void handleMapReply(MapReply mapReply);
25  
26      /**
27       * Handle map-request to be forwarded to authoritative ETR
28       *
29       * @param mapRequest
30       *            The map-request message
31       * @param transportAddress
32       *            The address of the ETR
33       */
34      void handleNonProxyMapRequest(MapRequest mapRequest, TransportAddress transportAddress);
35  }