Examples of ThreadLocalOutputBufferProvider


Examples of com.google.clearsilver.jsilver.output.ThreadLocalOutputBufferProvider

    // Setup the output buffer provider either with a threadlocal pool
    // or creating a new instance each time it is asked for.
    int bufferSize = options.getInitialBufferSize();
    if (options.getUseOutputBufferPool()) {
      // Use a ThreadLocal to reuse StringBuilder objects.
      outputBufferProvider = new ThreadLocalOutputBufferProvider(bufferSize);
    } else {
      // Create a new StringBuilder each time.
      outputBufferProvider = new InstanceOutputBufferProvider(bufferSize);
    }
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.