1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package io.netty.channel.uring;
17
18
19
20
21 public final class IoUringBufferRingExhaustedEvent {
22 private final short bufferGroupId;
23
24 IoUringBufferRingExhaustedEvent(short bufferGroupId) {
25 this.bufferGroupId = bufferGroupId;
26 }
27
28
29
30
31
32
33 public short bufferGroupId() {
34 return bufferGroupId;
35 }
36
37 @Override
38 public String toString() {
39 return "BufferRingExhaustedEvent{" +
40 "bufferGroupId=" + bufferGroupId +
41 '}';
42 }
43
44 @Override
45 public int hashCode() {
46 return Short.hashCode(bufferGroupId);
47 }
48
49 @Override
50 public boolean equals(Object obj) {
51 if (obj instanceof IoUringBufferRingExhaustedEvent) {
52 return bufferGroupId == ((IoUringBufferRingExhaustedEvent) obj).bufferGroupId;
53 }
54 return false;
55 }
56 }