Class TcpConn
java.lang.Object
io.vertx.core.AbstractVerticle
de.wuespace.telestion.services.connection.TcpConn
- All Implemented Interfaces:
io.vertx.core.Verticle
@Deprecated(since="v0.1.3",
forRemoval=true)
public final class TcpConn
extends io.vertx.core.AbstractVerticle
Deprecated, for removal: This API element is subject to removal in a future version.
This class opens a tcp connection. This could either be a tcp client to a host or a host which accepts new clients.
It is configured with the file based config pattern. After a connection is established the
TcpConn.Participant
is
published on the event bus. Incoming messages are published to the event bus too. The connection listens to the event
bus and send incoming messages over tcp to the participant. All addresses are defined in the configuration.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Deprecated, for removal: This API element is subject to removal in a future version.A chunk of data which is transmitted with theTcpConn
.static class
Deprecated, for removal: This API element is subject to removal in a future version.A participant of theTcpConn
. -
Field Summary
Fields inherited from class io.vertx.core.AbstractVerticle
context, vertx
-
Constructor Summary
ConstructorsConstructorDescriptionTcpConn()
Deprecated, for removal: This API element is subject to removal in a future version.Create aTcpConn
either with file based or default configuration.TcpConn(String host, int port, String broadcastAddress, List<String> targetAddresses, List<String> consumingAddresses)
Deprecated, for removal: This API element is subject to removal in a future version.Create aTcpConn
with forced configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class io.vertx.core.AbstractVerticle
config, deploymentID, getVertx, init, processArgs, start, stop
-
Constructor Details
-
TcpConn
public TcpConn()Deprecated, for removal: This API element is subject to removal in a future version.Create aTcpConn
either with file based or default configuration. -
TcpConn
public TcpConn(String host, int port, String broadcastAddress, List<String> targetAddresses, List<String> consumingAddresses)Deprecated, for removal: This API element is subject to removal in a future version.Create aTcpConn
with forced configuration.- Parameters:
host
- to which the connection should be established or null if this is the host of the connectionport
- of the connection hostbroadcastAddress
- to which the incoming data should be published or null if no publishing is allowedtargetAddresses
- to which the incoming data should be send ornull
if no direct targets existconsumingAddresses
- from which data will be consumed
-
-
Method Details
-
start
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
start
in interfaceio.vertx.core.Verticle
- Overrides:
start
in classio.vertx.core.AbstractVerticle
- Throws:
Exception
-
stop
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
stop
in interfaceio.vertx.core.Verticle
- Overrides:
stop
in classio.vertx.core.AbstractVerticle
- Throws:
Exception
-