Examples of recycle()


Examples of org.glassfish.grizzly.http.util.CacheableDataChunk.recycle()

            buffer = encodeContentEncodingHeader(memoryManager, buffer,
                    httpHeader, name, value);
        }

        name.recycle();
        value.recycle();

        httpHeader.makeUpgradeHeader();

        return buffer;
    }
View Full Code Here

Examples of org.glassfish.grizzly.http.util.CharChunk.recycle()

                    uri.setChars(cc.getBuffer(), cc.getStart(),
                            cc.getLength());
                    return;
                } catch (IOException e) {
                    log.log(Level.SEVERE, INVALID_URI_CHAR_ENCODING);
                    cc.recycle();
                }
            }
        }

        // Default encoding: fast conversion
View Full Code Here

Examples of org.glassfish.grizzly.http.util.MessageBytes.recycle()

            dd = new DispatchData();
            dispatchData.set(dd);
        }

        MessageBytes uriMB = dd.uriMB;
        uriMB.recycle();

        // Retrieve the thread local mapping data
        MappingData mappingData = dd.mappingData;

        // Map the URI
View Full Code Here

Examples of org.glassfish.grizzly.memory.BufferArray.recycle()

        // Restore buffer state
        for (int i = 0; i < queueRecord.savedBufferStates.size(); i++) {
            final BufferArray savedState = queueRecord.savedBufferStates.get(i);
            if (savedState != null) {
                savedState.restore();
                savedState.recycle();
            }
        }
       
        queueRecord.savedBufferStates.clear();
       
View Full Code Here

Examples of org.glassfish.grizzly.memory.ByteBufferArray.recycle()

                for (int i = 0; i < byteBufferArray.size(); i++) {
                    taskProcessor.processTask(new ProcessTask(array[i], readHandler));
                }

                byteBufferArray.recycle();
            }
        }
        return ctx.getStopAction();
    }
View Full Code Here

Examples of org.jboss.test.cluster.web.mocks.MockRequest.recycle()

      Response response = new Response();
      request.setResponse(response);
      valve.invoke(request, response);
      // StandardHostValve calls request.getSession(false) on way out, so we will too
      request.getSession(false);
      request.recycle();
   }
  
   public static Valve setupPipeline(Manager manager, RequestHandler requestHandler)
   {
      Pipeline pipeline = manager.getContainer().getPipeline();
View Full Code Here

Examples of org.jvnet.glassfish.comms.clb.proxy.ProxyRequestHandler.recycle()

            if (remoteHost == null) {
                if (task.getResponse().getStatus() == 200) {
                    if(_logger.isLoggable(Level.FINE)){
                        _logger.log(Level.FINE, "clb.proxy.request_endpoint_null_200");
                    }
                    task.recycle();
                    objManager.offerTask(task, protocolInfo.isSecure);
                    return false;
                } else {
                    if(_logger.isLoggable(Level.FINE)){
                        _logger.log(Level.FINE, "clb.proxy.request_endpoint_null");
View Full Code Here

Examples of org.openntf.domino.Database.recycle()

      int count = vec.getCount();
      timelog("Found " + count + " documents in the view");
      btitles.remove();
      timelog("Removed view.");
      btitles.recycle();
      db.recycle();
    } catch (Throwable t) {
      t.printStackTrace();
    } finally {
      long testEndTime = System.nanoTime();
      System.out.println("Completed " + getClass().getSimpleName() + " run in " + ((testEndTime - testStartTime) / 1000000) + " ms");
View Full Code Here

Examples of org.openntf.domino.Document.recycle()

      //      fos.close();

      storeTest.writeBinary("imdbNoteList", bytes, 2500 * 24);
      storeTest.save();
      String storeId = storeTest.getUniversalID();
      storeTest.recycle();
      storeTest = null;

      //      coll.recycle();
      //      coll = null;

View Full Code Here

Examples of org.openntf.domino.NoteCollection.recycle()

      storeTest = null;

      //      coll.recycle();
      //      coll = null;

      notecoll.recycle();
      notecoll = null;
      //      eventNotecoll.recycle();
      //      eventNotecoll = null;
      //      eventDb.recycle();
      //      eventDb = null;
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.