Package org.drasyl.remote.protocol
Class AddressedIntermediateEnvelope<T extends com.google.protobuf.MessageLite>
- java.lang.Object
-
- org.drasyl.pipeline.message.DefaultAddressedEnvelope<A,M>
-
- org.drasyl.remote.protocol.AddressedIntermediateEnvelope<T>
-
- All Implemented Interfaces:
io.netty.util.ReferenceCounted
,AddressedEnvelope<InetSocketAddressWrapper,IntermediateEnvelope<T>>
public class AddressedIntermediateEnvelope<T extends com.google.protobuf.MessageLite> extends DefaultAddressedEnvelope<A,M>
-
-
Constructor Summary
Constructors Constructor Description AddressedIntermediateEnvelope(InetSocketAddressWrapper sender, InetSocketAddressWrapper recipient, io.netty.buffer.ByteBuf byteBuf)
AddressedIntermediateEnvelope(InetSocketAddressWrapper sender, InetSocketAddressWrapper recipient, IntermediateEnvelope<T> content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
Methods inherited from class org.drasyl.pipeline.message.DefaultAddressedEnvelope
equals, getContent, getRecipient, getSender, hashCode
-
-
-
-
Constructor Detail
-
AddressedIntermediateEnvelope
public AddressedIntermediateEnvelope(InetSocketAddressWrapper sender, InetSocketAddressWrapper recipient, IntermediateEnvelope<T> content)
- Throws:
IllegalArgumentException
- ifsender
andrecipient
arenull
-
AddressedIntermediateEnvelope
public AddressedIntermediateEnvelope(InetSocketAddressWrapper sender, InetSocketAddressWrapper recipient, io.netty.buffer.ByteBuf byteBuf) throws IOException
- Throws:
NullPointerException
- ifsender
andrecipient
arenull
IllegalArgumentException
- ifsender
andrecipient
arenull
IOException
- ifbyteBuf
is not readable
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classDefaultAddressedEnvelope<InetSocketAddressWrapper,IntermediateEnvelope<T extends com.google.protobuf.MessageLite>>
-
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
-
-