java.lang.Object
io.mokamint.node.Peers
Providers of peers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classGson decoder.static classGson encoder.static classJson representation. -
Method Summary
-
Method Details
-
of
Yields a peer with the given URI.- Parameters:
uri- the URI of the peer- Returns:
- the peer
-
from
Unmarshals a peer from the given context.- Parameters:
context- the context- Returns:
- the peer
- Throws:
IOException- if the peer cannot be unmarshalled
-