public class Unmarshal<A>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> Unmarshal<T> |
apply(T value) |
<B> scala.concurrent.Future<B> |
to(Unmarshaller<A,B> um,
scala.concurrent.ExecutionContext ec,
org.apache.pekko.stream.Materializer mat)
Unmarshals the value to the given Type using the in-scope Unmarshaller.
|
A |
value() |
public Unmarshal(A value)
public static <T> Unmarshal<T> apply(T value)
public A value()
public <B> scala.concurrent.Future<B> to(Unmarshaller<A,B> um, scala.concurrent.ExecutionContext ec, org.apache.pekko.stream.Materializer mat)
Uses the default materializer ExecutionContext
if no implicit execution context is provided.
If you expect the marshalling to be heavy, it is suggested to provide a specialized context for those operations.
um
- (undocumented)ec
- (undocumented)mat
- (undocumented)