Package org.drasyl.cli.tunnel.message
Class Write
- java.lang.Object
-
- org.drasyl.cli.tunnel.message.Write
-
- All Implemented Interfaces:
io.netty.util.ReferenceCounted
,TunnelMessage
public class Write extends Object implements TunnelMessage, io.netty.util.ReferenceCounted
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getChannelId()
io.netty.buffer.ByteBuf
getMsg()
int
refCnt()
boolean
release()
boolean
release(int decrement)
io.netty.util.ReferenceCounted
retain()
io.netty.util.ReferenceCounted
retain(int increment)
String
toString()
io.netty.util.ReferenceCounted
touch()
io.netty.util.ReferenceCounted
touch(Object hint)
-
-
-
Constructor Detail
-
Write
public Write(String channelId, io.netty.buffer.ByteBuf msg)
-
Write
public Write(io.netty.channel.ChannelId channelId, io.netty.buffer.ByteBuf msg)
-
Write
public Write(io.netty.channel.Channel channel, io.netty.buffer.ByteBuf msg)
-
-
Method Detail
-
getChannelId
public String getChannelId()
- Specified by:
getChannelId
in interfaceTunnelMessage
-
getMsg
public io.netty.buffer.ByteBuf getMsg()
-
refCnt
public int refCnt()
- Specified by:
refCnt
in interfaceio.netty.util.ReferenceCounted
-
retain
public io.netty.util.ReferenceCounted retain()
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
-
retain
public io.netty.util.ReferenceCounted retain(int increment)
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
-
touch
public io.netty.util.ReferenceCounted touch()
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
-
touch
public io.netty.util.ReferenceCounted touch(Object hint)
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
-
release
public boolean release()
- Specified by:
release
in interfaceio.netty.util.ReferenceCounted
-
release
public boolean release(int decrement)
- Specified by:
release
in interfaceio.netty.util.ReferenceCounted
-
-