Class ChannelWrapper
java.lang.Object
org.geysermc.geyser.network.netty.ChannelWrapper
- All Implemented Interfaces:
io.netty.channel.Channel,io.netty.channel.ChannelOutboundInvoker,io.netty.util.AttributeMap,Comparable<io.netty.channel.Channel>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.Channel
io.netty.channel.Channel.Unsafe -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.netty.buffer.ByteBufAllocatoralloc()<T> io.netty.util.Attribute<T>attr(io.netty.util.AttributeKey<T> attributeKey)io.netty.channel.ChannelFuturebind(SocketAddress socketAddress)io.netty.channel.ChannelFuturebind(SocketAddress socketAddress, io.netty.channel.ChannelPromise channelPromise)longlongio.netty.channel.ChannelFutureclose()io.netty.channel.ChannelFutureclose(io.netty.channel.ChannelPromise channelPromise)io.netty.channel.ChannelFutureintcompareTo(io.netty.channel.Channel o)io.netty.channel.ChannelConfigconfig()io.netty.channel.ChannelFutureconnect(SocketAddress socketAddress)io.netty.channel.ChannelFutureconnect(SocketAddress socketAddress, io.netty.channel.ChannelPromise channelPromise)io.netty.channel.ChannelFutureconnect(SocketAddress socketAddress, SocketAddress socketAddress1)io.netty.channel.ChannelFutureconnect(SocketAddress socketAddress, SocketAddress socketAddress1, io.netty.channel.ChannelPromise channelPromise)io.netty.channel.ChannelFutureio.netty.channel.ChannelFuturederegister(io.netty.channel.ChannelPromise channelPromise)io.netty.channel.ChannelFutureio.netty.channel.ChannelFuturedisconnect(io.netty.channel.ChannelPromise channelPromise)io.netty.channel.EventLoopio.netty.channel.Channelflush()<T> booleanhasAttr(io.netty.util.AttributeKey<T> attributeKey)io.netty.channel.ChannelIdid()booleanisActive()booleanisOpen()booleanbooleanio.netty.channel.ChannelMetadatametadata()io.netty.channel.ChannelFuturenewFailedFuture(Throwable throwable)io.netty.channel.ChannelProgressivePromiseio.netty.channel.ChannelPromiseio.netty.channel.ChannelFutureio.netty.channel.Channelparent()io.netty.channel.ChannelPipelinepipeline()io.netty.channel.Channelread()voidremoteAddress(SocketAddress socketAddress)io.netty.channel.Channel.Unsafeunsafe()io.netty.channel.ChannelPromiseio.netty.channel.ChannelFutureio.netty.channel.ChannelFutureio.netty.channel.ChannelFuturewriteAndFlush(Object o)io.netty.channel.ChannelFuturewriteAndFlush(Object o, io.netty.channel.ChannelPromise channelPromise)
-
Field Details
-
source
protected final io.netty.channel.Channel source
-
-
Constructor Details
-
ChannelWrapper
public ChannelWrapper(io.netty.channel.Channel channel)
-
-
Method Details
-
localAddress
- Specified by:
localAddressin interfaceio.netty.channel.Channel
-
remoteAddress
- Specified by:
remoteAddressin interfaceio.netty.channel.Channel
-
remoteAddress
-
id
public io.netty.channel.ChannelId id()- Specified by:
idin interfaceio.netty.channel.Channel
-
eventLoop
public io.netty.channel.EventLoop eventLoop()- Specified by:
eventLoopin interfaceio.netty.channel.Channel
-
parent
public io.netty.channel.Channel parent()- Specified by:
parentin interfaceio.netty.channel.Channel
-
config
public io.netty.channel.ChannelConfig config()- Specified by:
configin interfaceio.netty.channel.Channel
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceio.netty.channel.Channel
-
isRegistered
public boolean isRegistered()- Specified by:
isRegisteredin interfaceio.netty.channel.Channel
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceio.netty.channel.Channel
-
metadata
public io.netty.channel.ChannelMetadata metadata()- Specified by:
metadatain interfaceio.netty.channel.Channel
-
closeFuture
public io.netty.channel.ChannelFuture closeFuture()- Specified by:
closeFuturein interfaceio.netty.channel.Channel
-
isWritable
public boolean isWritable()- Specified by:
isWritablein interfaceio.netty.channel.Channel
-
bytesBeforeUnwritable
public long bytesBeforeUnwritable()- Specified by:
bytesBeforeUnwritablein interfaceio.netty.channel.Channel
-
bytesBeforeWritable
public long bytesBeforeWritable()- Specified by:
bytesBeforeWritablein interfaceio.netty.channel.Channel
-
unsafe
public io.netty.channel.Channel.Unsafe unsafe()- Specified by:
unsafein interfaceio.netty.channel.Channel
-
pipeline
public io.netty.channel.ChannelPipeline pipeline()- Specified by:
pipelinein interfaceio.netty.channel.Channel
-
alloc
public io.netty.buffer.ByteBufAllocator alloc()- Specified by:
allocin interfaceio.netty.channel.Channel
-
bind
- Specified by:
bindin interfaceio.netty.channel.ChannelOutboundInvoker
-
connect
- Specified by:
connectin interfaceio.netty.channel.ChannelOutboundInvoker
-
connect
public io.netty.channel.ChannelFuture connect(SocketAddress socketAddress, SocketAddress socketAddress1)- Specified by:
connectin interfaceio.netty.channel.ChannelOutboundInvoker
-
disconnect
public io.netty.channel.ChannelFuture disconnect()- Specified by:
disconnectin interfaceio.netty.channel.ChannelOutboundInvoker
-
close
public io.netty.channel.ChannelFuture close()- Specified by:
closein interfaceio.netty.channel.ChannelOutboundInvoker
-
deregister
public io.netty.channel.ChannelFuture deregister()- Specified by:
deregisterin interfaceio.netty.channel.ChannelOutboundInvoker
-
bind
public io.netty.channel.ChannelFuture bind(SocketAddress socketAddress, io.netty.channel.ChannelPromise channelPromise)- Specified by:
bindin interfaceio.netty.channel.ChannelOutboundInvoker
-
connect
public io.netty.channel.ChannelFuture connect(SocketAddress socketAddress, io.netty.channel.ChannelPromise channelPromise)- Specified by:
connectin interfaceio.netty.channel.ChannelOutboundInvoker
-
connect
public io.netty.channel.ChannelFuture connect(SocketAddress socketAddress, SocketAddress socketAddress1, io.netty.channel.ChannelPromise channelPromise)- Specified by:
connectin interfaceio.netty.channel.ChannelOutboundInvoker
-
disconnect
public io.netty.channel.ChannelFuture disconnect(io.netty.channel.ChannelPromise channelPromise)- Specified by:
disconnectin interfaceio.netty.channel.ChannelOutboundInvoker
-
close
public io.netty.channel.ChannelFuture close(io.netty.channel.ChannelPromise channelPromise)- Specified by:
closein interfaceio.netty.channel.ChannelOutboundInvoker
-
deregister
public io.netty.channel.ChannelFuture deregister(io.netty.channel.ChannelPromise channelPromise)- Specified by:
deregisterin interfaceio.netty.channel.ChannelOutboundInvoker
-
read
public io.netty.channel.Channel read()- Specified by:
readin interfaceio.netty.channel.Channel- Specified by:
readin interfaceio.netty.channel.ChannelOutboundInvoker
-
write
- Specified by:
writein interfaceio.netty.channel.ChannelOutboundInvoker
-
write
public io.netty.channel.ChannelFuture write(Object o, io.netty.channel.ChannelPromise channelPromise)- Specified by:
writein interfaceio.netty.channel.ChannelOutboundInvoker
-
flush
public io.netty.channel.Channel flush()- Specified by:
flushin interfaceio.netty.channel.Channel- Specified by:
flushin interfaceio.netty.channel.ChannelOutboundInvoker
-
writeAndFlush
public io.netty.channel.ChannelFuture writeAndFlush(Object o, io.netty.channel.ChannelPromise channelPromise)- Specified by:
writeAndFlushin interfaceio.netty.channel.ChannelOutboundInvoker
-
writeAndFlush
- Specified by:
writeAndFlushin interfaceio.netty.channel.ChannelOutboundInvoker
-
newPromise
public io.netty.channel.ChannelPromise newPromise()- Specified by:
newPromisein interfaceio.netty.channel.ChannelOutboundInvoker
-
newProgressivePromise
public io.netty.channel.ChannelProgressivePromise newProgressivePromise()- Specified by:
newProgressivePromisein interfaceio.netty.channel.ChannelOutboundInvoker
-
newSucceededFuture
public io.netty.channel.ChannelFuture newSucceededFuture()- Specified by:
newSucceededFuturein interfaceio.netty.channel.ChannelOutboundInvoker
-
newFailedFuture
- Specified by:
newFailedFuturein interfaceio.netty.channel.ChannelOutboundInvoker
-
voidPromise
public io.netty.channel.ChannelPromise voidPromise()- Specified by:
voidPromisein interfaceio.netty.channel.ChannelOutboundInvoker
-
attr
public <T> io.netty.util.Attribute<T> attr(io.netty.util.AttributeKey<T> attributeKey)- Specified by:
attrin interfaceio.netty.util.AttributeMap
-
hasAttr
public <T> boolean hasAttr(io.netty.util.AttributeKey<T> attributeKey)- Specified by:
hasAttrin interfaceio.netty.util.AttributeMap
-
compareTo
public int compareTo(io.netty.channel.Channel o)- Specified by:
compareToin interfaceComparable<io.netty.channel.Channel>
-