java.lang.Object
ch.qos.logback.core.net.AutoFlushingObjectWriter
- All Implemented Interfaces:
ObjectWriter
Automatically flushes the underlying
ObjectOutputStream
immediately after calling it's
ObjectOutputStream.writeObject(Object)
method.- Author:
- Sebastian Gröbler
-
Constructor Summary
ConstructorDescriptionAutoFlushingObjectWriter
(ObjectOutputStream objectOutputStream, int resetFrequency) Creates a new instance for the givenObjectOutputStream
. -
Method Summary
-
Constructor Details
-
AutoFlushingObjectWriter
Creates a new instance for the givenObjectOutputStream
.- Parameters:
objectOutputStream
- the stream to write toresetFrequency
- the frequency with which the given stream will be automatically reset to prevent a memory leak
-
-
Method Details
-
write
Description copied from interface:ObjectWriter
Writes an object to an output.- Specified by:
write
in interfaceObjectWriter
- Parameters:
object
- theObject
to write- Throws:
IOException
- in case input/output fails, details are defined by the implementation
-