Class RuntimeTransport

java.lang.Object
com.exonum.binding.core.runtime.RuntimeTransport
All Implemented Interfaces:
java.lang.AutoCloseable

public final class RuntimeTransport
extends java.lang.Object
implements java.lang.AutoCloseable
Runtime transport connects service APIs to the web-server.
  • Constructor Summary

    Constructors 
    Constructor Description
    RuntimeTransport​(Server server, int port)
    Creates a new runtime transport.
  • Method Summary

    Modifier and Type Method Description
    void close()
    Stops the web-server.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RuntimeTransport

      @Inject public RuntimeTransport​(Server server, int port)
      Creates a new runtime transport.
      Parameters:
      server - a web server providing transport to Java services
      port - a port for the web server providing transport to Java services
  • Method Details

    • close

      public void close() throws java.lang.InterruptedException
      Stops the web-server.
      Specified by:
      close in interface java.lang.AutoCloseable
      Throws:
      java.lang.InterruptedException