Example usage for io.netty.util ReferenceCounted retain

List of usage examples for io.netty.util ReferenceCounted retain

Introduction

In this page you can find the example usage for io.netty.util ReferenceCounted retain.

Prototype

ReferenceCounted retain();

Source Link

Document

Increases the reference count by 1 .

Usage

From source file:org.lanternpowered.server.network.message.ReferenceCountedMessage.java

License:MIT License

@Override
public ReferenceCounted retain() {
    final ReferenceCounted referenceCounted = getReferenceCounted();
    if (referenceCounted != null) {
        referenceCounted.retain();
    }//from   www  .ja  v a 2 s.  com
    return this;
}