类io.netty.channel.PreferHeapByteBufAllocator源码实例Demo

下面列出了怎么用io.netty.channel.PreferHeapByteBufAllocator的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: netty-4.1.22   文件: LocalChannel.java
protected LocalChannel(LocalServerChannel parent, LocalChannel peer) {
    super(parent);
    config().setAllocator(new PreferHeapByteBufAllocator(config.getAllocator()));
    this.peer = peer;
    localAddress = parent.localAddress();
    remoteAddress = peer.localAddress();
}
 
源代码2 项目: quarkus   文件: VirtualChannel.java
protected VirtualChannel(VirtualServerChannel parent, VirtualClientConnection connection) {
    super(parent);
    config().setAllocator(new PreferHeapByteBufAllocator(config.getAllocator()));
    localAddress = parent.localAddress();
    remoteAddress = connection.clientAddress();
    this.virtualConnection = connection;
}
 
@Deprecated
public DefaultOioSocketChannelConfig(SocketChannel channel, Socket javaSocket) {
    super(channel, javaSocket);
    setAllocator(new PreferHeapByteBufAllocator(getAllocator()));
}
 
DefaultOioSocketChannelConfig(OioSocketChannel channel, Socket javaSocket) {
    super(channel, javaSocket);
    setAllocator(new PreferHeapByteBufAllocator(getAllocator()));
}
 
DefaultOioDatagramChannelConfig(DatagramChannel channel, DatagramSocket javaSocket) {
    super(channel, javaSocket);
    setAllocator(new PreferHeapByteBufAllocator(getAllocator()));
}
 
@Deprecated
public DefaultOioServerSocketChannelConfig(ServerSocketChannel channel, ServerSocket javaSocket) {
    super(channel, javaSocket);
    setAllocator(new PreferHeapByteBufAllocator(getAllocator()));
}
 
DefaultOioServerSocketChannelConfig(OioServerSocketChannel channel, ServerSocket javaSocket) {
    super(channel, javaSocket);
    setAllocator(new PreferHeapByteBufAllocator(getAllocator()));
}
 
源代码8 项目: netty-4.1.22   文件: LocalChannel.java
public LocalChannel() {
    super(null);
    config().setAllocator(new PreferHeapByteBufAllocator(config.getAllocator()));
}
 
源代码9 项目: netty-4.1.22   文件: LocalServerChannel.java
public LocalServerChannel() {
    config().setAllocator(new PreferHeapByteBufAllocator(config.getAllocator()));
}
 
源代码10 项目: netty-4.1.22   文件: DefaultRxtxChannelConfig.java
DefaultRxtxChannelConfig(RxtxChannel channel) {
    super(channel);
    setAllocator(new PreferHeapByteBufAllocator(getAllocator()));
}
 
源代码11 项目: quarkus   文件: VirtualServerChannel.java
public VirtualServerChannel() {
    config().setAllocator(new PreferHeapByteBufAllocator(config.getAllocator()));
}
 
 类所在包
 类方法
 同包方法