Class RabbitMqAmqpTransportConnector

java.lang.Object
de.iip_ecosphere.platform.transport.connectors.impl.AbstractTransportConnector
de.iip_ecosphere.platform.transport.connectors.rabbitmq.RabbitMqAmqpTransportConnector
All Implemented Interfaces:
de.iip_ecosphere.platform.transport.connectors.TransportConnector

public class RabbitMqAmqpTransportConnector
extends de.iip_ecosphere.platform.transport.connectors.impl.AbstractTransportConnector
Implements an AMQP transport connector based on RabbitMQ.
Author:
Holger Eichelberger, SSE
  • Field Details

  • Constructor Details

  • Method Details

    • syncSend

      public void syncSend​(String stream, Object data) throws IOException
      Throws:
      IOException
    • asyncSend

      public void asyncSend​(String stream, Object data) throws IOException
      Throws:
      IOException
    • send

      private void send​(String stream, Object data, boolean block) throws IOException
      Sends data to stream.
      Parameters:
      stream - the stream to send to
      data - the data to send to stream
      block - shall this be a blocking call (ignored)
      Throws:
      IOException - in cases that sending fails
    • setReceptionCallback

      public void setReceptionCallback​(String stream, de.iip_ecosphere.platform.transport.connectors.ReceptionCallback<?> callback) throws IOException
      Specified by:
      setReceptionCallback in interface de.iip_ecosphere.platform.transport.connectors.TransportConnector
      Overrides:
      setReceptionCallback in class de.iip_ecosphere.platform.transport.connectors.impl.AbstractTransportConnector
      Throws:
      IOException
    • composeStreamName

      public String composeStreamName​(String parent, String name)
    • connect

      public void connect​(de.iip_ecosphere.platform.transport.connectors.TransportParameter params) throws IOException
      Specified by:
      connect in interface de.iip_ecosphere.platform.transport.connectors.TransportConnector
      Overrides:
      connect in class de.iip_ecosphere.platform.transport.connectors.impl.AbstractTransportConnector
      Throws:
      IOException
    • configureFactory

      protected void configureFactory​(com.rabbitmq.client.ConnectionFactory factory)
      Allows further factory configuration.
      Parameters:
      factory - the factory to configured
    • disconnect

      public void disconnect() throws IOException
      Throws:
      IOException
    • getName

      public String getName()