move vpnservice and cleanup poms
[netvirt.git] / ipv6service / impl / src / main / java / org / opendaylight / netvirt / ipv6service / utils / Ipv6PeriodicTimer.java
1 /*
2  * Copyright (c) 2016 Dell 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
9 package org.opendaylight.netvirt.ipv6service.utils;
10
11 import io.netty.util.Timeout;
12 import io.netty.util.TimerTask;
13 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid;
14
15 public class Ipv6PeriodicTimer implements TimerTask {
16     private final Ipv6PeriodicTrQueue ipv6Queue;
17     private final Uuid portId;
18
19     public Ipv6PeriodicTimer(Uuid portId, Ipv6PeriodicTrQueue ipv6Queue) {
20         this.portId = portId;
21         this.ipv6Queue = ipv6Queue;
22     }
23
24     @Override
25     public void run(Timeout timeout) throws Exception {
26         ipv6Queue.addMessage(portId);
27     }
28 }