Java 类io.netty.util.ResourceLeak 实例源码

项目:netty4.0.27Learn    文件:AbstractByteBufAllocator.java   
protected static ByteBuf toLeakAwareBuffer(ByteBuf buf) {
    ResourceLeak leak;
    switch (ResourceLeakDetector.getLevel()) {
        case SIMPLE:
            leak = AbstractByteBuf.leakDetector.open(buf);
            if (leak != null) {
                buf = new SimpleLeakAwareByteBuf(buf, leak);
            }
            break;
        case ADVANCED:
        case PARANOID:
            leak = AbstractByteBuf.leakDetector.open(buf);
            if (leak != null) {
                buf = new AdvancedLeakAwareByteBuf(buf, leak);
            }
            break;
    }
    return buf;
}
项目:netty4study    文件:AbstractByteBufAllocator.java   
protected static ByteBuf toLeakAwareBuffer(ByteBuf buf) {
    ResourceLeak leak;
    switch (ResourceLeakDetector.getLevel()) {
        case SIMPLE:
            leak = AbstractByteBuf.leakDetector.open(buf);
            if (leak != null) {
                buf = new SimpleLeakAwareByteBuf(buf, leak);
            }
            break;
        case ADVANCED:
        case PARANOID:
            leak = AbstractByteBuf.leakDetector.open(buf);
            if (leak != null) {
                buf = new AdvancedLeakAwareByteBuf(buf, leak);
            }
            break;
    }
    return buf;
}
项目:netty-netty-5.0.0.Alpha1    文件:AbstractByteBufAllocator.java   
protected static ByteBuf toLeakAwareBuffer(ByteBuf buf) {
    ResourceLeak leak;
    switch (ResourceLeakDetector.getLevel()) {
        case SIMPLE:
            leak = AbstractByteBuf.leakDetector.open(buf);
            if (leak != null) {
                buf = new SimpleLeakAwareByteBuf(buf, leak);
            }
            break;
        case ADVANCED:
        case PARANOID:
            leak = AbstractByteBuf.leakDetector.open(buf);
            if (leak != null) {
                buf = new AdvancedLeakAwareByteBuf(buf, leak);
            }
            break;
    }
    return buf;
}
项目:netty4.0.27Learn    文件:AdvancedLeakAwareByteBuf.java   
AdvancedLeakAwareByteBuf(ByteBuf buf, ResourceLeak leak) {
    super(buf);
    this.leak = leak;
}
项目:netty4.0.27Learn    文件:SimpleLeakAwareByteBuf.java   
SimpleLeakAwareByteBuf(ByteBuf buf, ResourceLeak leak) {
    super(buf);
    this.leak = leak;
}
项目:PocketServer-Ref    文件:Event.java   
ResourceLeak getLeak() {
    return leak;
}
项目:netty4study    文件:AdvancedLeakAwareByteBuf.java   
AdvancedLeakAwareByteBuf(ByteBuf buf, ResourceLeak leak) {
    super(buf);
    this.leak = leak;
}
项目:netty4study    文件:SimpleLeakAwareByteBuf.java   
SimpleLeakAwareByteBuf(ByteBuf buf, ResourceLeak leak) {
    super(buf);
    this.leak = leak;
}
项目:netty-netty-5.0.0.Alpha1    文件:AdvancedLeakAwareByteBuf.java   
AdvancedLeakAwareByteBuf(ByteBuf buf, ResourceLeak leak) {
    super(buf);
    this.leak = leak;
}
项目:netty-netty-5.0.0.Alpha1    文件:SimpleLeakAwareByteBuf.java   
SimpleLeakAwareByteBuf(ByteBuf buf, ResourceLeak leak) {
    super(buf);
    this.leak = leak;
}