• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

leonchen83 / redis-replicator / #2170

06 Jun 2025 05:39AM UTC coverage: 71.217% (-0.2%) from 71.406%
#2170

push

chenby
redis 8.0

8 of 33 new or added lines in 7 files covered. (24.24%)

5 existing lines in 2 files now uncovered.

6641 of 9325 relevant lines covered (71.22%)

0.71 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/moilioncircle/redis/replicator/rdb/datatype/Slot.java
1
/*
2
 * Copyright 2016-2017 Leon Chen
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *     http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package com.moilioncircle.redis.replicator.rdb.datatype;
18

19
import java.io.Serializable;
20

21
/**
22
 * @author Leon Chen
23
 * @since 3.9.0
24
 */
25
public class Slot  implements Serializable {
26
        
27
        private static final long serialVersionUID = 1L;
28
        
29
        private long slotId;
30
        private long slotSize;
31
        private long expiresSlotSize;
32
        
NEW
33
        public Slot() {
×
NEW
34
        }
×
35
        
NEW
36
        public Slot(long slotId, long slotSize, long expiresSlotSize) {
×
NEW
37
                this.slotId = slotId;
×
NEW
38
                this.slotSize = slotSize;
×
NEW
39
                this.expiresSlotSize = expiresSlotSize;
×
NEW
40
        }
×
41
        
42
        public long getSlotId() {
NEW
43
                return slotId;
×
44
        }
45
        
46
        public void setSlotId(long slotId) {
NEW
47
                this.slotId = slotId;
×
NEW
48
        }
×
49
        
50
        public long getSlotSize() {
NEW
51
                return slotSize;
×
52
        }
53
        
54
        public void setSlotSize(long slotSize) {
NEW
55
                this.slotSize = slotSize;
×
NEW
56
        }
×
57
        
58
        public long getExpiresSlotSize() {
NEW
59
                return expiresSlotSize;
×
60
        }
61
        
62
        public void setExpiresSlotSize(long expiresSlotSize) {
NEW
63
                this.expiresSlotSize = expiresSlotSize;
×
NEW
64
        }
×
65
        
66
        @Override
67
        public String toString() {
NEW
68
                return "Slot{" +
×
69
                                "slotId=" + slotId +
70
                                ", slotSize=" + slotSize +
71
                                ", expiresSlotSize=" + expiresSlotSize +
72
                                '}';
73
        }
74
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc