Package net.sf.microlog.core

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


    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

      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

TOP

Related Classes of net.sf.microlog.core.CyclicBuffer

Copyright © 2018 www.massapicom. 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.