U
- T
- public interface Decoder<U,T>
Function
's implementation.
This library will try to match the decoded Object to its associated Function. For example, the Decoder's type will
be mapped, by the FunctionResolver
to the Function of the same type if no function message has been defined:
Important: Decoder cannot be chained, e.g the result of a Decoder will never be passed to another Decoder, likeDecoder<String, POJO> d = new Decoder<String, POJO>() { @Override public POJO decode(Event e, String s) { return new POJO(s); } }
Encoder
Modifier and Type | Interface and Description |
---|---|
static class |
Decoder.Decoded<T>
A Decoder may return an instance of a Decoded object to prevent some messages from being delivered to a
Function ,
by returning a Decoder.Decoded.ABORT instance. |
Copyright © 2015. All Rights Reserved.