public class Channel extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Channel.Property
设备属性
|
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.buffer.ByteBufAllocator |
alloc() |
void |
close()
关闭
|
String |
comm() |
void |
connect()
连接
|
void |
execute(Runnable task)
在EventLoop中运行
|
void |
heartbeat()
处理心跳
|
boolean |
inEventLoop()
当前是否运行在EventLoop下
|
boolean |
isActive() |
ChannelPipeline |
pipeline() |
Channel |
property(Channel.Property property) |
Channel |
register(EventLoop eventLoop)
注册到指定的eventLoop上去
|
void |
write(Object data)
写数据
|
public Channel(String comm)
comm - property - public Channel property(Channel.Property property)
public ChannelPipeline pipeline()
public io.netty.buffer.ByteBufAllocator alloc()
public String comm()
public boolean isActive()
public void connect()
public void write(Object data)
data - public void heartbeat()
public void close()
public boolean inEventLoop()
public void execute(Runnable task)
task - Copyright © 2020. All rights reserved.