I - input typeO - output typepublic interface ThreadsafeProcessor<I,O>
| Modifier and Type | Method and Description |
|---|---|
ThreadsafeProcessor<I,O> |
newInstance()
Return a new threadsafe instance.
|
O |
process(I input)
Set the input item that will be processed when a thread is allocated to
this processor.
|
O process(I input)
input - the object to be processedThreadsafeProcessor<I,O> newInstance()