public abstract class Spore<I,O> extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
finished |
| Constructor and Description |
|---|
Spore() |
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
to be called at remote side
when using streaming to deliver multiple results, call this in order to signal no further
results are expected.
|
Spore<I,O> |
forEach(Callback<O> cb)
local.
|
boolean |
isFinished()
to be read at remote side in order to decide wether to stop e.g.
|
Spore<I,O> |
onFinish(Runnable toRun) |
abstract void |
remote(I input)
implements code to be executed at receiver side
|
protected void |
stream(O result) |
protected void |
streamError(Object err)
note that sending an error implicitely will close the backstream.
|
public abstract void remote(I input)
input - public Spore<I,O> forEach(Callback<O> cb)
cb - public void finish()
protected void streamError(Object err)
err - protected void stream(O result)
public boolean isFinished()
Copyright © 2015. All rights reserved.