public class AsynchronousTransformer extends Object implements FunctionTransformer
#listener
as a callback with the final output.Constructor and Description |
---|
AsynchronousTransformer() |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.collections.Transformer |
getCallback()
Callback to the end of the asynchronous process
|
org.apache.commons.collections.Transformer |
getProcessor()
The Transformer that will be called in a separate thread with the original input as input to it.
|
boolean |
isSingleThread()
If true it will execute it as part of the original thread sequentially, but the process is still forked from original
|
void |
setCallback(org.apache.commons.collections.Transformer callback)
Callback to the end of the asynchronous process
|
void |
setProcessor(org.apache.commons.collections.Transformer processor)
The Transformer that will be called in a separate thread with the original input as input to it.
|
void |
setSingleThread(boolean singleThread)
If true it will execute it as part of the original thread sequentially, but the process is still forked from original
|
Object |
transform(Object input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
public org.apache.commons.collections.Transformer getCallback()
public void setCallback(org.apache.commons.collections.Transformer callback)
public org.apache.commons.collections.Transformer getProcessor()
public void setProcessor(org.apache.commons.collections.Transformer processor)
public boolean isSingleThread()
public void setSingleThread(boolean singleThread)
Copyright © 2018. All rights reserved.