1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package io.netty.channel.unix;
17
18 import io.netty.buffer.ByteBuf;
19 import io.netty.buffer.ByteBufHolder;
20 import io.netty.channel.DefaultAddressedEnvelope;
21
22
23
24
25 public final class DomainDatagramPacket
26 extends DefaultAddressedEnvelope<ByteBuf, DomainSocketAddress> implements ByteBufHolder {
27
28
29
30
31 public DomainDatagramPacket(ByteBuf data, DomainSocketAddress recipient) {
32 super(data, recipient);
33 }
34
35
36
37
38
39 public DomainDatagramPacket(ByteBuf data, DomainSocketAddress recipient, DomainSocketAddress sender) {
40 super(data, recipient, sender);
41 }
42
43 @Override
44 public DomainDatagramPacket copy() {
45 return replace(content().copy());
46 }
47
48 @Override
49 public DomainDatagramPacket duplicate() {
50 return replace(content().duplicate());
51 }
52
53 @Override
54 public DomainDatagramPacket replace(ByteBuf content) {
55 return new DomainDatagramPacket(content, recipient(), sender());
56 }
57
58 @Override
59 public DomainDatagramPacket retain() {
60 super.retain();
61 return this;
62 }
63
64 @Override
65 public DomainDatagramPacket retain(int increment) {
66 super.retain(increment);
67 return this;
68 }
69
70 @Override
71 public DomainDatagramPacket retainedDuplicate() {
72 return replace(content().retainedDuplicate());
73 }
74
75 @Override
76 public DomainDatagramPacket touch() {
77 super.touch();
78 return this;
79 }
80
81 @Override
82 public DomainDatagramPacket touch(Object hint) {
83 super.touch(hint);
84 return this;
85 }
86 }