public class RabbitMqAmqpTransportConnector
extends de.iip_ecosphere.platform.transport.connectors.impl.AbstractTransportConnector
| Modifier and Type | Field and Description |
|---|---|
private com.rabbitmq.client.Channel |
channel |
private com.rabbitmq.client.Connection |
connection |
static String |
NAME |
| Constructor and Description |
|---|
RabbitMqAmqpTransportConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
asyncSend(String stream,
Object data) |
String |
composeStreamName(String parent,
String name) |
protected void |
configureFactory(com.rabbitmq.client.ConnectionFactory factory)
Allows further factory configuration.
|
void |
connect(de.iip_ecosphere.platform.transport.connectors.TransportParameter params) |
void |
disconnect() |
String |
getName() |
private void |
send(String stream,
Object data,
boolean block)
Sends data to
stream. |
void |
setReceptionCallback(String stream,
de.iip_ecosphere.platform.transport.connectors.ReceptionCallback<?> callback) |
void |
syncSend(String stream,
Object data) |
public static final String NAME
private com.rabbitmq.client.Connection connection
private com.rabbitmq.client.Channel channel
public void syncSend(String stream, Object data) throws IOException
IOExceptionpublic void asyncSend(String stream, Object data) throws IOException
IOExceptionprivate void send(String stream, Object data, boolean block) throws IOException
stream.stream - the stream to send todata - the data to send to streamblock - shall this be a blocking call (ignored)IOException - in cases that sending failspublic void setReceptionCallback(String stream, de.iip_ecosphere.platform.transport.connectors.ReceptionCallback<?> callback) throws IOException
setReceptionCallback in interface de.iip_ecosphere.platform.transport.connectors.TransportConnectorsetReceptionCallback in class de.iip_ecosphere.platform.transport.connectors.impl.AbstractTransportConnectorIOExceptionpublic void connect(de.iip_ecosphere.platform.transport.connectors.TransportParameter params)
throws IOException
connect in interface de.iip_ecosphere.platform.transport.connectors.TransportConnectorconnect in class de.iip_ecosphere.platform.transport.connectors.impl.AbstractTransportConnectorIOExceptionprotected void configureFactory(com.rabbitmq.client.ConnectionFactory factory)
factory - the factory to configuredpublic void disconnect()
throws IOException
IOExceptionpublic String getName()
Copyright © 2021. All rights reserved.