Class Peers

java.lang.Object
io.mokamint.node.Peers

public abstract class Peers extends Object
Providers of peers.
  • Method Details

    • of

      public static Peer of(URI uri)
      Yields a peer with the given URI.
      Parameters:
      uri - the URI of the peer
      Returns:
      the peer
    • from

      public static Peer from(io.hotmoka.marshalling.api.UnmarshallingContext context) throws IOException
      Unmarshals a peer from the given context.
      Parameters:
      context - the context
      Returns:
      the peer
      Throws:
      IOException - if the peer cannot be unmarshalled