|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.cinnamon.io.MessageProcessor.ResultHolder<O>
public static class MessageProcessor.ResultHolder<O>
Represents a single result produced by a MessageProcessor.
| Constructor Summary | |
|---|---|
MessageProcessor.ResultHolder(O result,
boolean error)
Creates a new ResultHolder instance. |
|
| Method Summary | |
|---|---|
O |
getResult()
Return the object representing the actual result |
boolean |
isError()
Indicates whether the result wrapped by this instance represents an error outcome. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageProcessor.ResultHolder(O result,
boolean error)
result - the object representing the actual resulterror - indicates whether the result represents an error outcome| Method Detail |
|---|
public boolean isError()
public O getResult()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||