io.netty.channel.PreferHeapByteBufAllocator Java Examples
The following examples show how to use
io.netty.channel.PreferHeapByteBufAllocator.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LocalChannel.java From netty-4.1.22 with Apache License 2.0 | 5 votes |
protected LocalChannel(LocalServerChannel parent, LocalChannel peer) { super(parent); config().setAllocator(new PreferHeapByteBufAllocator(config.getAllocator())); this.peer = peer; localAddress = parent.localAddress(); remoteAddress = peer.localAddress(); }
Example #2
Source File: VirtualChannel.java From quarkus with Apache License 2.0 | 5 votes |
protected VirtualChannel(VirtualServerChannel parent, VirtualClientConnection connection) { super(parent); config().setAllocator(new PreferHeapByteBufAllocator(config.getAllocator())); localAddress = parent.localAddress(); remoteAddress = connection.clientAddress(); this.virtualConnection = connection; }
Example #3
Source File: DefaultOioSocketChannelConfig.java From netty-4.1.22 with Apache License 2.0 | 4 votes |
@Deprecated public DefaultOioSocketChannelConfig(SocketChannel channel, Socket javaSocket) { super(channel, javaSocket); setAllocator(new PreferHeapByteBufAllocator(getAllocator())); }
Example #4
Source File: DefaultOioSocketChannelConfig.java From netty-4.1.22 with Apache License 2.0 | 4 votes |
DefaultOioSocketChannelConfig(OioSocketChannel channel, Socket javaSocket) { super(channel, javaSocket); setAllocator(new PreferHeapByteBufAllocator(getAllocator())); }
Example #5
Source File: DefaultOioDatagramChannelConfig.java From netty-4.1.22 with Apache License 2.0 | 4 votes |
DefaultOioDatagramChannelConfig(DatagramChannel channel, DatagramSocket javaSocket) { super(channel, javaSocket); setAllocator(new PreferHeapByteBufAllocator(getAllocator())); }
Example #6
Source File: DefaultOioServerSocketChannelConfig.java From netty-4.1.22 with Apache License 2.0 | 4 votes |
@Deprecated public DefaultOioServerSocketChannelConfig(ServerSocketChannel channel, ServerSocket javaSocket) { super(channel, javaSocket); setAllocator(new PreferHeapByteBufAllocator(getAllocator())); }
Example #7
Source File: DefaultOioServerSocketChannelConfig.java From netty-4.1.22 with Apache License 2.0 | 4 votes |
DefaultOioServerSocketChannelConfig(OioServerSocketChannel channel, ServerSocket javaSocket) { super(channel, javaSocket); setAllocator(new PreferHeapByteBufAllocator(getAllocator())); }
Example #8
Source File: LocalChannel.java From netty-4.1.22 with Apache License 2.0 | 4 votes |
public LocalChannel() { super(null); config().setAllocator(new PreferHeapByteBufAllocator(config.getAllocator())); }
Example #9
Source File: LocalServerChannel.java From netty-4.1.22 with Apache License 2.0 | 4 votes |
public LocalServerChannel() { config().setAllocator(new PreferHeapByteBufAllocator(config.getAllocator())); }
Example #10
Source File: DefaultRxtxChannelConfig.java From netty-4.1.22 with Apache License 2.0 | 4 votes |
DefaultRxtxChannelConfig(RxtxChannel channel) { super(channel); setAllocator(new PreferHeapByteBufAllocator(getAllocator())); }
Example #11
Source File: VirtualServerChannel.java From quarkus with Apache License 2.0 | 4 votes |
public VirtualServerChannel() { config().setAllocator(new PreferHeapByteBufAllocator(config.getAllocator())); }