List of usage examples for io.netty.util ReferenceCounted release
boolean release(int decrement);
From source file:io.grpc.alts.internal.NettyTsiHandshakerTest.java
License:Apache License
@After public void teardown() { for (ReferenceCounted reference : references) { reference.release(reference.refCnt()); } }
From source file:org.lanternpowered.server.network.message.ReferenceCountedMessage.java
License:MIT License
@Override public boolean release(int decrement) { final ReferenceCounted referenceCounted = getReferenceCounted(); return referenceCounted == null || referenceCounted.release(decrement); }