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 Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
    A chunk of data which is transmitted with the TcpConn.
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
    A participant of the TcpConn.
  • Field Summary

    Fields inherited from class io.vertx.core.AbstractVerticle

    context, vertx
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a TcpConn 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 a TcpConn with forced configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    start​(io.vertx.core.Promise<Void> startPromise)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    stop​(io.vertx.core.Promise<Void> stopPromise)
    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

    Methods inherited from class java.lang.Object

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

    • TcpConn

      public TcpConn()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a TcpConn 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 a TcpConn with forced configuration.
      Parameters:
      host - to which the connection should be established or null if this is the host of the connection
      port - of the connection host
      broadcastAddress - to which the incoming data should be published or null if no publishing is allowed
      targetAddresses - to which the incoming data should be send or null if no direct targets exist
      consumingAddresses - from which data will be consumed
  • Method Details

    • start

      public void start(io.vertx.core.Promise<Void> startPromise) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      start in interface io.vertx.core.Verticle
      Overrides:
      start in class io.vertx.core.AbstractVerticle
      Throws:
      Exception
    • stop

      public void stop(io.vertx.core.Promise<Void> stopPromise) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      stop in interface io.vertx.core.Verticle
      Overrides:
      stop in class io.vertx.core.AbstractVerticle
      Throws:
      Exception