2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.cluster.access.client;
10 import com.google.common.base.MoreObjects.ToStringHelper;
13 * A {@link ConnectionEntry} which has been transmitted. It holds additional information about the last transmission.
15 * @author Robert Varga
17 final class TransmittedConnectionEntry extends ConnectionEntry {
18 private final long sessionId;
19 private final long txSequence;
20 private final long txTicks;
22 TransmittedConnectionEntry(final ConnectionEntry entry, final long sessionId, final long txSequence,
25 this.sessionId = sessionId;
26 this.txSequence = txSequence;
34 long getTxSequence() {
43 ToStringHelper addToStringAttributes(final ToStringHelper toStringHelper) {
44 return super.addToStringAttributes(toStringHelper).add("sessionId", sessionId).add("txSequence", txSequence);