Example usage for io.netty.handler.codec.redis FullBulkStringRedisMessage isNull

List of usage examples for io.netty.handler.codec.redis FullBulkStringRedisMessage isNull

Introduction

In this page you can find the example usage for io.netty.handler.codec.redis FullBulkStringRedisMessage isNull.

Prototype

public boolean isNull() 

Source Link

Document

Returns whether the content of this message is null .

Usage

From source file:com.flysoloing.learning.network.netty.redis.RedisClientHandler.java

License:Apache License

private static String getString(FullBulkStringRedisMessage msg) {
    if (msg.isNull()) {
        return "(null)";
    }/*from   w ww  .  j av a  2 s .  c om*/
    return msg.content().toString(CharsetUtil.UTF_8);
}