public class Netty4Utils
extends java.lang.Object
| Constructor and Description |
|---|
Netty4Utils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeChannels(java.util.Collection<io.netty.channel.Channel> channels) |
static void |
setup() |
static io.netty.buffer.ByteBuf |
toByteBuf(org.elasticsearch.common.bytes.BytesReference reference)
Turns the given BytesReference into a ByteBuf.
|
static org.elasticsearch.common.bytes.BytesReference |
toBytesReference(io.netty.buffer.ByteBuf buffer)
Wraps the given ChannelBuffer with a BytesReference
|
public static void setup()
public static io.netty.buffer.ByteBuf toByteBuf(org.elasticsearch.common.bytes.BytesReference reference)
public static org.elasticsearch.common.bytes.BytesReference toBytesReference(io.netty.buffer.ByteBuf buffer)
public static void closeChannels(java.util.Collection<io.netty.channel.Channel> channels)
throws java.io.IOException
java.io.IOException