Examples of CyclicBuffer


Examples of ch.qos.logback.core.helpers.CyclicBuffer

    }
    return cb;
  }

  private void removeHead() {
    CyclicBuffer cb = head.value;
    if (cb != null) {
      cb.clear();
    }
    map.remove(head.key);
    bufferCount--;
    head = head.next;
    head.prev = null;
View Full Code Here

Examples of ch.qos.logback.core.helpers.CyclicBuffer

    }
    return cb;
  }

  private void removeHead() {
    CyclicBuffer cb = head.value;
    if (cb != null) {
      cb.clear();
    }
    map.remove(head.key);
    bufferCount--;
    head = head.next;
    head.prev = null;
View Full Code Here

Examples of ch.qos.logback.core.helpers.CyclicBuffer

    }
    return cb;
  }

  private void removeHead() {
    CyclicBuffer cb = head.value;
    if (cb != null) {
      cb.clear();
    }
    map.remove(head.key);
    bufferCount--;
    head = head.next;
    head.prev = null;
View Full Code Here

Examples of ch.qos.logback.core.helpers.CyclicBuffer

  CyclicBuffer cb;
  int maxSize = 512;

  public void start() {
    cb = new CyclicBuffer(maxSize);
    super.start();
  }
View Full Code Here

Examples of ch.qos.logback.core.helpers.CyclicBuffer

    }
    return cb;
  }

  private void removeHead() {
    CyclicBuffer cb = head.value;
    if (cb != null) {
      cb.clear();
    }
    map.remove(head.key);
    bufferCount--;
    head = head.next;
    head.prev = null;
View Full Code Here

Examples of ch.qos.logback.core.helpers.CyclicBuffer

  CyclicBuffer cb;
  int maxSize = 512;

  public void start() {
    cb = new CyclicBuffer(maxSize);
    super.start();
  }
View Full Code Here

Examples of net.sf.microlog.core.CyclicBuffer

    if (maxNbrOfEntries <= 0) {
      maxNbrOfEntries = DEFAULT_MAX_NBR_OF_ENTRIES;
    }

    this.cyclicBufferEnabled = cyclicBufferEnabled;
    this.cyclicBuffer = new CyclicBuffer(maxNbrOfEntries);
  }
View Full Code Here

Examples of net.sf.microlog.core.CyclicBuffer

    if (name.equals(MemoryBufferAppender.CYCLIC_BUFFER_PROPERTY)) {
      this.cyclicBufferEnabled = "true".equalsIgnoreCase(value);
    } else if (name.equals(MemoryBufferAppender.MAX_LOG_ENTRIES_PROPERTY)) {
      int maxNbrOfEntries = Integer.parseInt(value);
      if (maxNbrOfEntries > 0) {
        cyclicBuffer = new CyclicBuffer(maxNbrOfEntries);
      }
    }
  }
View Full Code Here

Examples of net.sf.microlog.core.CyclicBuffer

      throw new IllegalArgumentException(
          "The bufferSize must not be less than 1.");
    }

    if (buffer == null) {
      buffer = new CyclicBuffer(bufferSize);
    } else if (buffer != null && bufferSize != buffer.getBufferSize()) {
      buffer = new CyclicBuffer(bufferSize);
    }
  }
View Full Code Here

Examples of org.apache.log4j.helpers.CyclicBuffer

   * Options are activated and become effective only after calling this
   * method.
   */
  public void activateOptions() {
    try {
      cb = new CyclicBuffer(bufferSize);

      // Create a connection to the XMPP server
      LogLog.debug("Stablishing connection with XMPP server");
      con = new XMPPConnection(InstantMessagingModule.getConnectionConfiguration());
      // Most servers require you to login before performing other tasks
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.