Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
RecordWriter<GenericRecord> |
writer
The writer that is used
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
WriterObjectThread(IWriterProxy proxy,
int itemsToProduce,
int disposePrematurely,
long timeoutLifecycle,
TimeUnit timeunitLifecycle,
int capacity)
Create writer
|
| Modifier and Type | Method and Description |
|---|---|
void |
prepare()
Initialize the writer
|
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic RecordWriter<GenericRecord> writer
public WriterObjectThread(IWriterProxy proxy, int itemsToProduce, int disposePrematurely, long timeoutLifecycle, TimeUnit timeunitLifecycle, int capacity)
proxy - the proxy to use to publishitemsToProduce - the number of items to producedisposePrematurely - if the reader should dispose before completingtimeoutLifecycle - lifecycle timeouttimeunitLifecycle - lifecycle time unitcapacity - the buffer capacityCopyright © 2014. All Rights Reserved.