Class ChannelProxy
java.lang.Object
com.comphenix.protocol.injector.netty.ChannelProxy
- All Implemented Interfaces:
io.netty.channel.Channel,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> paramAttributeKey)io.netty.channel.ChannelFuturebind(SocketAddress paramSocketAddress)io.netty.channel.ChannelFuturebind(SocketAddress paramSocketAddress, io.netty.channel.ChannelPromise paramChannelPromise)io.netty.channel.ChannelFutureclose()io.netty.channel.ChannelFutureclose(io.netty.channel.ChannelPromise paramChannelPromise)io.netty.channel.ChannelFutureintcompareTo(io.netty.channel.Channel o)io.netty.channel.ChannelConfigconfig()io.netty.channel.ChannelFutureconnect(SocketAddress paramSocketAddress)io.netty.channel.ChannelFutureconnect(SocketAddress paramSocketAddress, io.netty.channel.ChannelPromise paramChannelPromise)io.netty.channel.ChannelFutureconnect(SocketAddress paramSocketAddress1, SocketAddress paramSocketAddress2)io.netty.channel.ChannelFutureconnect(SocketAddress paramSocketAddress1, SocketAddress paramSocketAddress2, io.netty.channel.ChannelPromise paramChannelPromise)io.netty.channel.ChannelFutureDeprecated.io.netty.channel.ChannelFuturederegister(io.netty.channel.ChannelPromise paramChannelPromise)Deprecated.io.netty.channel.ChannelFutureio.netty.channel.ChannelFuturedisconnect(io.netty.channel.ChannelPromise paramChannelPromise)io.netty.channel.EventLoopio.netty.channel.Channelflush()booleanisActive()booleanisOpen()booleanbooleanio.netty.channel.ChannelMetadatametadata()io.netty.channel.ChannelFuturenewFailedFuture(Throwable paramThrowable)io.netty.channel.ChannelProgressivePromiseio.netty.channel.ChannelPromiseio.netty.channel.ChannelFutureprotected abstract RunnableonMessageScheduled(Runnable runnable, FieldAccessor packetAccessor)Invoked when a packet is scheduled for transmission in the event loop.protected abstract <T> Callable<T>onMessageScheduled(Callable<T> callable, FieldAccessor packetAccessor)Invoked when a packet is scheduled for transmission in the event loop.io.netty.channel.Channelparent()io.netty.channel.ChannelPipelinepipeline()io.netty.channel.Channelread()io.netty.channel.Channel.Unsafeunsafe()io.netty.channel.ChannelPromiseio.netty.channel.ChannelFutureio.netty.channel.ChannelFutureio.netty.channel.ChannelFuturewriteAndFlush(Object paramObject)io.netty.channel.ChannelFuturewriteAndFlush(Object paramObject, io.netty.channel.ChannelPromise paramChannelPromise)
-
Field Details
-
delegate
protected io.netty.channel.Channel delegate -
messageClass
-
-
Constructor Details
-
ChannelProxy
-
-
Method Details
-
onMessageScheduled
protected abstract <T> Callable<T> onMessageScheduled(Callable<T> callable, FieldAccessor packetAccessor)Invoked when a packet is scheduled for transmission in the event loop.- Type Parameters:
T- Type- Parameters:
callable- - callable to schedule for execution.packetAccessor- - accessor for modifying the packet in the callable.- Returns:
- The callable that will be scheduled, or NULL to cancel.
-
onMessageScheduled
Invoked when a packet is scheduled for transmission in the event loop.- Parameters:
runnable- - the runnable that contains a packet to be scheduled.packetAccessor- - accessor for modifying the packet in the runnable.- Returns:
- The runnable that will be scheduled, or NULL to cancel.
-
attr
public <T> io.netty.util.Attribute<T> attr(io.netty.util.AttributeKey<T> paramAttributeKey)- Specified by:
attrin interfaceio.netty.util.AttributeMap
-
bind
- Specified by:
bindin interfaceio.netty.channel.Channel
-
pipeline
public io.netty.channel.ChannelPipeline pipeline()- Specified by:
pipelinein interfaceio.netty.channel.Channel
-
connect
- Specified by:
connectin interfaceio.netty.channel.Channel
-
alloc
public io.netty.buffer.ByteBufAllocator alloc()- Specified by:
allocin interfaceio.netty.channel.Channel
-
newPromise
public io.netty.channel.ChannelPromise newPromise()- Specified by:
newPromisein interfaceio.netty.channel.Channel
-
eventLoop
public io.netty.channel.EventLoop eventLoop()- Specified by:
eventLoopin interfaceio.netty.channel.Channel
-
connect
public io.netty.channel.ChannelFuture connect(SocketAddress paramSocketAddress1, SocketAddress paramSocketAddress2)- Specified by:
connectin interfaceio.netty.channel.Channel
-
newProgressivePromise
public io.netty.channel.ChannelProgressivePromise newProgressivePromise()- Specified by:
newProgressivePromisein 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
-
newSucceededFuture
public io.netty.channel.ChannelFuture newSucceededFuture()- Specified by:
newSucceededFuturein interfaceio.netty.channel.Channel
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceio.netty.channel.Channel
-
disconnect
public io.netty.channel.ChannelFuture disconnect()- Specified by:
disconnectin interfaceio.netty.channel.Channel
-
isRegistered
public boolean isRegistered()- Specified by:
isRegisteredin interfaceio.netty.channel.Channel
-
newFailedFuture
- Specified by:
newFailedFuturein interfaceio.netty.channel.Channel
-
close
public io.netty.channel.ChannelFuture close()- Specified by:
closein interfaceio.netty.channel.Channel
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceio.netty.channel.Channel
-
deregister
Deprecated.- Specified by:
deregisterin interfaceio.netty.channel.Channel
-
voidPromise
public io.netty.channel.ChannelPromise voidPromise()- Specified by:
voidPromisein interfaceio.netty.channel.Channel
-
metadata
public io.netty.channel.ChannelMetadata metadata()- Specified by:
metadatain interfaceio.netty.channel.Channel
-
bind
public io.netty.channel.ChannelFuture bind(SocketAddress paramSocketAddress, io.netty.channel.ChannelPromise paramChannelPromise)- Specified by:
bindin interfaceio.netty.channel.Channel
-
localAddress
- Specified by:
localAddressin interfaceio.netty.channel.Channel
-
remoteAddress
- Specified by:
remoteAddressin interfaceio.netty.channel.Channel
-
connect
public io.netty.channel.ChannelFuture connect(SocketAddress paramSocketAddress, io.netty.channel.ChannelPromise paramChannelPromise)- Specified by:
connectin 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
-
flush
public io.netty.channel.Channel flush()- Specified by:
flushin interfaceio.netty.channel.Channel
-
connect
public io.netty.channel.ChannelFuture connect(SocketAddress paramSocketAddress1, SocketAddress paramSocketAddress2, io.netty.channel.ChannelPromise paramChannelPromise)- Specified by:
connectin interfaceio.netty.channel.Channel
-
read
public io.netty.channel.Channel read()- Specified by:
readin interfaceio.netty.channel.Channel
-
unsafe
public io.netty.channel.Channel.Unsafe unsafe()- Specified by:
unsafein interfaceio.netty.channel.Channel
-
disconnect
public io.netty.channel.ChannelFuture disconnect(io.netty.channel.ChannelPromise paramChannelPromise)- Specified by:
disconnectin interfaceio.netty.channel.Channel
-
close
public io.netty.channel.ChannelFuture close(io.netty.channel.ChannelPromise paramChannelPromise)- Specified by:
closein interfaceio.netty.channel.Channel
-
deregister
@Deprecated public io.netty.channel.ChannelFuture deregister(io.netty.channel.ChannelPromise paramChannelPromise)Deprecated.- Specified by:
deregisterin interfaceio.netty.channel.Channel
-
write
- Specified by:
writein interfaceio.netty.channel.Channel
-
write
public io.netty.channel.ChannelFuture write(Object paramObject, io.netty.channel.ChannelPromise paramChannelPromise)- Specified by:
writein interfaceio.netty.channel.Channel
-
writeAndFlush
public io.netty.channel.ChannelFuture writeAndFlush(Object paramObject, io.netty.channel.ChannelPromise paramChannelPromise)- Specified by:
writeAndFlushin interfaceio.netty.channel.Channel
-
writeAndFlush
- Specified by:
writeAndFlushin interfaceio.netty.channel.Channel
-
compareTo
public int compareTo(io.netty.channel.Channel o)- Specified by:
compareToin interfaceComparable<io.netty.channel.Channel>
-