BUG-5280: add AbstractClientConnection
[controller.git] / opendaylight / md-sal / cds-access-client / src / main / java / org / opendaylight / controller / cluster / access / client / TransmittedConnectionEntry.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, 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.controller.cluster.access.client;
9
10 /**
11  * A {@link ConnectionEntry} which has been transmitted. It holds additional information about the last transmission.
12  *
13  * @author Robert Varga
14  */
15 final class TransmittedConnectionEntry extends ConnectionEntry {
16     private final long sessionId;
17     private final long txSequence;
18     private final long txTicks;
19
20     TransmittedConnectionEntry(final ConnectionEntry entry, final long sessionId, final long txSequence,
21         final long now) {
22         super(entry);
23         this.sessionId = sessionId;
24         this.txSequence = txSequence;
25         this.txTicks = now;
26     }
27
28     long getSessionId() {
29         return sessionId;
30     }
31
32     long getTxSequence() {
33         return txSequence;
34     }
35
36     long getTxTicks() {
37         return txTicks;
38     }
39
40 }