Class Serializer
java.lang.Object
com.carrotsearch.ant.tasks.junit4.events.Serializer
- All Implemented Interfaces:
Closeable
,AutoCloseable
Event serializer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Throwable
private final ArrayDeque
<RemoteEvent> private Thread
private AtomicBoolean
private JsonWriter
private final Object
Should help in ensuring the right order of stream writes.private Writer
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
lock
Should help in ensuring the right order of stream writes. -
writer
-
jsonWriter
-
events
-
doForcedShutdown
-
forceCloseDaemon
-
forceCloseDaemonQuit
-
-
Constructor Details
-
Serializer
- Throws:
IOException
-
-
Method Details
-
serialize
- Throws:
IOException
-
flushQueue
- Throws:
IOException
-
flush
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-