BUG-5280: separate request sequence and transmit sequence
[controller.git] / opendaylight / md-sal / cds-access-client / src / main / java / org / opendaylight / controller / cluster / access / client / TxDetails.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  * Holder class for transmission details about a particular {@link SequencedQueueEntry}.
12  *
13  * @author Robert Varga
14  */
15 final class TxDetails {
16     private final long sessionId;
17     private final long txSequence;
18     private final long timeTicks;
19
20     TxDetails(final long sessionId, final long txSequence, final long timeTicks) {
21         this.sessionId = sessionId;
22         this.txSequence = txSequence;
23         this.timeTicks = timeTicks;
24     }
25
26     long getSessionId() {
27         return sessionId;
28     }
29
30     long getTxSequence() {
31         return txSequence;
32     }
33
34     long getTimeTicks() {
35         return timeTicks;
36     }
37 }