Example usage for io.netty.handler.codec.memcache.binary FullBinaryMemcacheResponse release

List of usage examples for io.netty.handler.codec.memcache.binary FullBinaryMemcacheResponse release

Introduction

In this page you can find the example usage for io.netty.handler.codec.memcache.binary FullBinaryMemcacheResponse release.

Prototype

boolean release();

Source Link

Document

Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0 .

Usage

From source file:io.netty.example.memcache.binary.MemcacheClientHandler.java

License:Apache License

@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) {
    FullBinaryMemcacheResponse res = (FullBinaryMemcacheResponse) msg;
    System.out.println(res.content().toString(CharsetUtil.UTF_8));
    res.release();
}