Example usage for io.netty.util ReferenceCountUtil touch

List of usage examples for io.netty.util ReferenceCountUtil touch

Introduction

In this page you can find the example usage for io.netty.util ReferenceCountUtil touch.

Prototype

@SuppressWarnings("unchecked")
public static <T> T touch(T msg, Object hint) 

Source Link

Document

Tries to call ReferenceCounted#touch(Object) if the specified message implements ReferenceCounted .

Usage

From source file:org.apache.spark.network.protocol.MessageWithHeader.java

License:Apache License

@Override
public MessageWithHeader touch(Object o) {
    super.touch(o);
    header.touch(o);
    ReferenceCountUtil.touch(body, o);
    return this;
}

From source file:org.dcache.xrootd.protocol.messages.AsyncResponse.java

License:Open Source License

@Override
public ReferenceCounted touch(Object hint) {
    ReferenceCountUtil.touch(response, hint);
    return this;
}