Package com.exonum.binding.core.runtime
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.
-
Constructor Details
-
RuntimeTransport
Creates a new runtime transport.- Parameters:
server
- a web server providing transport to Java servicesport
- a port for the web server providing transport to Java services
-
-
Method Details
-
close
public void close() throws java.lang.InterruptedExceptionStops the web-server.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.InterruptedException
-