Package com.artipie.vertx
Class VertxSliceServer
- java.lang.Object
-
- com.artipie.vertx.VertxSliceServer
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class VertxSliceServer extends Object implements Closeable
Vert.x Slice.- Since:
- 0.1
-
-
Constructor Summary
Constructors Constructor Description VertxSliceServer(com.artipie.http.Slice served, Integer port)Ctor.VertxSliceServer(io.vertx.reactivex.core.Vertx vertx, com.artipie.http.Slice served)Ctor.VertxSliceServer(io.vertx.reactivex.core.Vertx vertx, com.artipie.http.Slice served, Integer port)Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intstart()Start the server.voidstop()Stop the server.
-
-
-
Constructor Detail
-
VertxSliceServer
public VertxSliceServer(io.vertx.reactivex.core.Vertx vertx, com.artipie.http.Slice served)Ctor.- Parameters:
vertx- The vertx.served- The slice to be served.
-
VertxSliceServer
public VertxSliceServer(com.artipie.http.Slice served, Integer port)Ctor.- Parameters:
served- The slice to be served.port- The port.
-
VertxSliceServer
public VertxSliceServer(io.vertx.reactivex.core.Vertx vertx, com.artipie.http.Slice served, Integer port)Ctor.- Parameters:
vertx- The vertx.served- The slice to be served.port- The port.
-
-
Method Detail
-
start
public int start()
Start the server.- Returns:
- Port the server is listening on.
-
stop
public void stop()
Stop the server.
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-