Examples of recycleBuffer()


Examples of org.apache.flink.runtime.io.network.Buffer.recycleBuffer()

      Buffer envBuffer = env.getBuffer();
      out.writeBytes(envBuffer.getMemorySegment().wrap(0, envBuffer.size()));

      // Recycle the buffer from OUR buffer pool after everything has been
      // copied to Nettys buffer space.
      envBuffer.recycleBuffer();
    }
  }
}
View Full Code Here

Examples of org.apache.flink.runtime.io.network.Buffer.recycleBuffer()

          if (LOG.isDebugEnabled()) {
            LOG.debug(String.format("Set channel %s auto read to true.", channelHandlerContext.channel()));
          }
        }
      } catch (IOException e) {
        availableBuffer.recycleBuffer();
      }
    }
  }

  // --------------------------------------------------------------------
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.