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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.netty.buffer.ByteBufAllocator
alloc()
<T> io.netty.util.Attribute<T>
attr(io.netty.util.AttributeKey<T> attributeKey)
io.netty.channel.ChannelFuture
bind(SocketAddress socketAddress)
io.netty.channel.ChannelFuture
bind(SocketAddress socketAddress, io.netty.channel.ChannelPromise channelPromise)
long
long
io.netty.channel.ChannelFuture
close()
io.netty.channel.ChannelFuture
close(io.netty.channel.ChannelPromise channelPromise)
io.netty.channel.ChannelFuture
int
compareTo(io.netty.channel.Channel o)
io.netty.channel.ChannelConfig
config()
io.netty.channel.ChannelFuture
connect(SocketAddress socketAddress)
io.netty.channel.ChannelFuture
connect(SocketAddress socketAddress, io.netty.channel.ChannelPromise channelPromise)
io.netty.channel.ChannelFuture
connect(SocketAddress socketAddress, SocketAddress socketAddress1)
io.netty.channel.ChannelFuture
connect(SocketAddress socketAddress, SocketAddress socketAddress1, io.netty.channel.ChannelPromise channelPromise)
io.netty.channel.ChannelFuture
io.netty.channel.ChannelFuture
deregister(io.netty.channel.ChannelPromise channelPromise)
io.netty.channel.ChannelFuture
io.netty.channel.ChannelFuture
disconnect(io.netty.channel.ChannelPromise channelPromise)
io.netty.channel.EventLoop
io.netty.channel.Channel
flush()
<T> boolean
hasAttr(io.netty.util.AttributeKey<T> attributeKey)
io.netty.channel.ChannelId
id()
boolean
isActive()
boolean
isOpen()
boolean
boolean
io.netty.channel.ChannelMetadata
metadata()
io.netty.channel.ChannelFuture
newFailedFuture(Throwable throwable)
io.netty.channel.ChannelProgressivePromise
io.netty.channel.ChannelPromise
io.netty.channel.ChannelFuture
io.netty.channel.Channel
parent()
io.netty.channel.ChannelPipeline
pipeline()
io.netty.channel.Channel
read()
void
remoteAddress(SocketAddress socketAddress)
io.netty.channel.Channel.Unsafe
unsafe()
io.netty.channel.ChannelPromise
io.netty.channel.ChannelFuture
io.netty.channel.ChannelFuture
io.netty.channel.ChannelFuture
writeAndFlush(Object o)
io.netty.channel.ChannelFuture
writeAndFlush(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:
localAddress
in interfaceio.netty.channel.Channel
-
remoteAddress
- Specified by:
remoteAddress
in interfaceio.netty.channel.Channel
-
remoteAddress
-
id
public io.netty.channel.ChannelId id()- Specified by:
id
in interfaceio.netty.channel.Channel
-
eventLoop
public io.netty.channel.EventLoop eventLoop()- Specified by:
eventLoop
in interfaceio.netty.channel.Channel
-
parent
public io.netty.channel.Channel parent()- Specified by:
parent
in interfaceio.netty.channel.Channel
-
config
public io.netty.channel.ChannelConfig config()- Specified by:
config
in interfaceio.netty.channel.Channel
-
isOpen
public boolean isOpen()- Specified by:
isOpen
in interfaceio.netty.channel.Channel
-
isRegistered
public boolean isRegistered()- Specified by:
isRegistered
in interfaceio.netty.channel.Channel
-
isActive
public boolean isActive()- Specified by:
isActive
in interfaceio.netty.channel.Channel
-
metadata
public io.netty.channel.ChannelMetadata metadata()- Specified by:
metadata
in interfaceio.netty.channel.Channel
-
closeFuture
public io.netty.channel.ChannelFuture closeFuture()- Specified by:
closeFuture
in interfaceio.netty.channel.Channel
-
isWritable
public boolean isWritable()- Specified by:
isWritable
in interfaceio.netty.channel.Channel
-
bytesBeforeUnwritable
public long bytesBeforeUnwritable()- Specified by:
bytesBeforeUnwritable
in interfaceio.netty.channel.Channel
-
bytesBeforeWritable
public long bytesBeforeWritable()- Specified by:
bytesBeforeWritable
in interfaceio.netty.channel.Channel
-
unsafe
public io.netty.channel.Channel.Unsafe unsafe()- Specified by:
unsafe
in interfaceio.netty.channel.Channel
-
pipeline
public io.netty.channel.ChannelPipeline pipeline()- Specified by:
pipeline
in interfaceio.netty.channel.Channel
-
alloc
public io.netty.buffer.ByteBufAllocator alloc()- Specified by:
alloc
in interfaceio.netty.channel.Channel
-
bind
- Specified by:
bind
in interfaceio.netty.channel.ChannelOutboundInvoker
-
connect
- Specified by:
connect
in interfaceio.netty.channel.ChannelOutboundInvoker
-
connect
public io.netty.channel.ChannelFuture connect(SocketAddress socketAddress, SocketAddress socketAddress1)- Specified by:
connect
in interfaceio.netty.channel.ChannelOutboundInvoker
-
disconnect
public io.netty.channel.ChannelFuture disconnect()- Specified by:
disconnect
in interfaceio.netty.channel.ChannelOutboundInvoker
-
close
public io.netty.channel.ChannelFuture close()- Specified by:
close
in interfaceio.netty.channel.ChannelOutboundInvoker
-
deregister
public io.netty.channel.ChannelFuture deregister()- Specified by:
deregister
in interfaceio.netty.channel.ChannelOutboundInvoker
-
bind
public io.netty.channel.ChannelFuture bind(SocketAddress socketAddress, io.netty.channel.ChannelPromise channelPromise)- Specified by:
bind
in interfaceio.netty.channel.ChannelOutboundInvoker
-
connect
public io.netty.channel.ChannelFuture connect(SocketAddress socketAddress, io.netty.channel.ChannelPromise channelPromise)- Specified by:
connect
in interfaceio.netty.channel.ChannelOutboundInvoker
-
connect
public io.netty.channel.ChannelFuture connect(SocketAddress socketAddress, SocketAddress socketAddress1, io.netty.channel.ChannelPromise channelPromise)- Specified by:
connect
in interfaceio.netty.channel.ChannelOutboundInvoker
-
disconnect
public io.netty.channel.ChannelFuture disconnect(io.netty.channel.ChannelPromise channelPromise)- Specified by:
disconnect
in interfaceio.netty.channel.ChannelOutboundInvoker
-
close
public io.netty.channel.ChannelFuture close(io.netty.channel.ChannelPromise channelPromise)- Specified by:
close
in interfaceio.netty.channel.ChannelOutboundInvoker
-
deregister
public io.netty.channel.ChannelFuture deregister(io.netty.channel.ChannelPromise channelPromise)- Specified by:
deregister
in interfaceio.netty.channel.ChannelOutboundInvoker
-
read
public io.netty.channel.Channel read()- Specified by:
read
in interfaceio.netty.channel.Channel
- Specified by:
read
in interfaceio.netty.channel.ChannelOutboundInvoker
-
write
- Specified by:
write
in interfaceio.netty.channel.ChannelOutboundInvoker
-
write
public io.netty.channel.ChannelFuture write(Object o, io.netty.channel.ChannelPromise channelPromise)- Specified by:
write
in interfaceio.netty.channel.ChannelOutboundInvoker
-
flush
public io.netty.channel.Channel flush()- Specified by:
flush
in interfaceio.netty.channel.Channel
- Specified by:
flush
in interfaceio.netty.channel.ChannelOutboundInvoker
-
writeAndFlush
public io.netty.channel.ChannelFuture writeAndFlush(Object o, io.netty.channel.ChannelPromise channelPromise)- Specified by:
writeAndFlush
in interfaceio.netty.channel.ChannelOutboundInvoker
-
writeAndFlush
- Specified by:
writeAndFlush
in interfaceio.netty.channel.ChannelOutboundInvoker
-
newPromise
public io.netty.channel.ChannelPromise newPromise()- Specified by:
newPromise
in interfaceio.netty.channel.ChannelOutboundInvoker
-
newProgressivePromise
public io.netty.channel.ChannelProgressivePromise newProgressivePromise()- Specified by:
newProgressivePromise
in interfaceio.netty.channel.ChannelOutboundInvoker
-
newSucceededFuture
public io.netty.channel.ChannelFuture newSucceededFuture()- Specified by:
newSucceededFuture
in interfaceio.netty.channel.ChannelOutboundInvoker
-
newFailedFuture
- Specified by:
newFailedFuture
in interfaceio.netty.channel.ChannelOutboundInvoker
-
voidPromise
public io.netty.channel.ChannelPromise voidPromise()- Specified by:
voidPromise
in interfaceio.netty.channel.ChannelOutboundInvoker
-
attr
public <T> io.netty.util.Attribute<T> attr(io.netty.util.AttributeKey<T> attributeKey)- Specified by:
attr
in interfaceio.netty.util.AttributeMap
-
hasAttr
public <T> boolean hasAttr(io.netty.util.AttributeKey<T> attributeKey)- Specified by:
hasAttr
in interfaceio.netty.util.AttributeMap
-
compareTo
public int compareTo(io.netty.channel.Channel o)- Specified by:
compareTo
in interfaceComparable<io.netty.channel.Channel>
-