use of org.jocean.idiom.StateableSupport in project jocean-http by isdom.
the class StreamUtil method allocStateableDWB.
public static DisposableWrapper<ByteBuf> allocStateableDWB(final int bufSize) {
final ByteBufAllocator allocator = PooledByteBufAllocator.DEFAULT;
final ByteBuf buf = allocator.buffer(bufSize, bufSize);
return Proxys.mixin().mix(DisposableWrapper.class, RxNettys.wrap4release(buf)).mix(Stateable.class, new StateableSupport()).build();
}
Aggregations