| File was renamed from opendj-sdk/opends/src/server/org/opends/server/loggers/AsyncronousTextWriter.java |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.loggers; |
| | | |
| | |
| | | * A Text Writer which writes log records asynchronously to |
| | | * character-based stream. |
| | | */ |
| | | public class AsyncronousTextWriter |
| | | public class AsynchronousTextWriter |
| | | implements ServerShutdownListener, TextWriter |
| | | { |
| | | /** |
| | |
| | | private boolean autoFlush; |
| | | |
| | | /** |
| | | * Construct a new AsyncronousTextWriter wrapper. |
| | | * Construct a new AsynchronousTextWriter wrapper. |
| | | * |
| | | * @param name the name of the thread. |
| | | * @param capacity the size of the queue before it gets flushed. |
| | |
| | | * after the queue is flushed. |
| | | * @param writer a character stream used for output. |
| | | */ |
| | | public AsyncronousTextWriter(String name, int capacity, boolean autoFlush, |
| | | public AsynchronousTextWriter(String name, int capacity, boolean autoFlush, |
| | | TextWriter writer) |
| | | { |
| | | this.name = name; |
| | |
| | | /** |
| | | * Retrieves the wrapped writer. |
| | | * |
| | | * @return The wrapped writer used by this asyncronous writer. |
| | | * @return The wrapped writer used by this asynchronous writer. |
| | | */ |
| | | public TextWriter getWrappedWriter() |
| | | { |
| | |
| | | */ |
| | | public String getShutdownListenerName() |
| | | { |
| | | return "AsyncronousTextWriter Thread " + name; |
| | | return "AsynchronousTextWriter Thread " + name; |
| | | } |
| | | |
| | | /** |