List of usage examples for io.netty.util ReferenceCounted retain
ReferenceCounted retain(int increment);
From source file:org.lanternpowered.server.network.message.ReferenceCountedMessage.java
License:MIT License
@Override public ReferenceCounted retain(int increment) { final ReferenceCounted referenceCounted = getReferenceCounted(); if (referenceCounted != null) { referenceCounted.retain(increment); }/*from www . ja v a 2 s . c o m*/ return this; }