public final class InterconnectConnector extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
InterconnectConnector.Response
Response.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
HEADER_ICO_CLASS
name of the message header to specify interconnect ICO class
|
static String |
HEADER_REQUEST_UUID
name of the message header to specify interconnect request UUID
|
| Modifier and Type | Method and Description |
|---|---|
static List<InterconnectObject> |
receiveBulkFromQueue(String queueName,
String selector,
int maxSize,
long timeout,
boolean secure) |
static List<InterconnectConnector.Response> |
receiveBulkFromQueueEnhanced(String queueName,
String selector,
int maxSize,
long timeout,
boolean secure) |
static List<InterconnectObject> |
receiveBulkFromTopic(String topicName,
String selector,
int maxSize,
long timeout,
boolean secure) |
static List<InterconnectConnector.Response> |
receiveBulkFromTopicEnhanced(String topicName,
String selector,
int maxSize,
long timeout,
boolean secure) |
static InterconnectObject |
receiveFromQueue(String queueName,
String selector,
long timeout,
boolean secure) |
static InterconnectConnector.Response |
receiveFromQueueEnhanced(String queueName,
String selector,
long timeout,
boolean secure) |
static InterconnectObject |
receiveFromTopic(String topicName,
String selector,
long timeout,
boolean secure) |
static InterconnectConnector.Response |
receiveFromTopicEnhanced(String topicName,
String selector,
long timeout,
boolean secure) |
static InterconnectObject |
request(UUID uuid,
String queueName,
InterconnectObject requestICO) |
static InterconnectObject |
request(UUID uuid,
String queueName,
InterconnectObject requestICO,
Map<String,Object> customHeaders) |
static InterconnectObject |
request(UUID uuid,
String queueName,
InterconnectObject requestICO,
Map<String,Object> customHeaders,
boolean secure,
long receiveTimeout,
long sendTimeout,
int priority) |
static void |
sendToDestination(javax.jms.Destination destination,
InterconnectObject ico,
Map<String,Object> customHeaders,
boolean secure,
String replyToQueueName,
String correlationId) |
static void |
sendToQueue(String queueName,
InterconnectObject ico) |
static void |
sendToQueue(String queueName,
InterconnectObject ico,
Map<String,Object> customHeaders) |
static void |
sendToQueue(String queueName,
InterconnectObject ico,
Map<String,Object> customHeaders,
boolean secure) |
static void |
sendToQueue(String queueName,
InterconnectObject ico,
Map<String,Object> customHeaders,
boolean secure,
String replyToQueueName,
String correlationId) |
static void |
sendToQueue(String queueName,
InterconnectObject ico,
Map<String,Object> customHeaders,
String replyToQueueName,
String correlationId) |
static void |
sendToTopic(String topicName,
InterconnectObject ico) |
static void |
sendToTopic(String topicName,
InterconnectObject ico,
Map<String,Object> customHeaders) |
static void |
sendToTopic(String topicName,
InterconnectObject ico,
Map<String,Object> customHeaders,
boolean secure) |
static void |
start() |
static void |
start(String brokerUrl) |
static void |
stop() |
public static final String HEADER_REQUEST_UUID
public static final String HEADER_ICO_CLASS
public static void start(String brokerUrl) throws InfrastructureException
brokerUrl - the URL of the Interconnect message brokerInfrastructureException - of connection errorpublic static void start()
throws InfrastructureException
InfrastructureException - If MessageConnector can not be startedpublic static void stop()
throws InfrastructureException
InfrastructureException - If MessageConnector can not be stoppedpublic static void sendToDestination(javax.jms.Destination destination,
InterconnectObject ico,
Map<String,Object> customHeaders,
boolean secure,
String replyToQueueName,
String correlationId)
throws InfrastructureException,
CryptoException,
IOException
destination - Destinationico - Interconnect ObjectcustomHeaders - Headers (or null)secure - Enable secure transport?replyToQueueName - Reply is send to this queue (or null)correlationId - Correlation id (or null)InfrastructureException - If an infrastructure error occursCryptoException - If the message could not be encryptedcom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static void sendToQueue(String queueName, InterconnectObject ico, Map<String,Object> customHeaders, boolean secure, String replyToQueueName, String correlationId) throws InfrastructureException, CryptoException, IOException
queueName - Queue nameico - Interconnect ObjectcustomHeaders - Headers (or null)secure - Enable secure transport?replyToQueueName - Reply is send to this queue (or null)correlationId - Correlation id (or null)InfrastructureException - If an infrastructure error occursCryptoException - If the message could not be encryptedcom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static void sendToQueue(String queueName, InterconnectObject ico, Map<String,Object> customHeaders, boolean secure) throws InfrastructureException, CryptoException, IOException
queueName - Queue nameico - Interconnect ObjectcustomHeaders - Headerssecure - Enable secure transport?InfrastructureException - If an infrastructure error occursCryptoException - If the message could not be encryptedcom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static void sendToQueue(String queueName, InterconnectObject ico, Map<String,Object> customHeaders, String replyToQueueName, String correlationId) throws InfrastructureException, IOException
queueName - Queue nameico - Interconnect ObjectcustomHeaders - HeadersreplyToQueueName - Reply is send to this queue (or null)correlationId - Correlation id (or null)InfrastructureException - If an infrastructure error occurscom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static void sendToQueue(String queueName, InterconnectObject ico, Map<String,Object> customHeaders) throws InfrastructureException, IOException
queueName - Queue nameico - Interconnect ObjectcustomHeaders - HeadersInfrastructureException - If an infrastructure error occurscom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static void sendToQueue(String queueName, InterconnectObject ico) throws InfrastructureException, IOException
queueName - Queue nameico - Interconnect ObjectInfrastructureException - If an infrastructure error occurscom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static void sendToTopic(String topicName, InterconnectObject ico, Map<String,Object> customHeaders, boolean secure) throws InfrastructureException, CryptoException, IOException
topicName - Topic nameico - Interconnect ObjectcustomHeaders - Headerssecure - Enable secure transport?InfrastructureException - If an infrastructure error occursCryptoException - If the message could not be encryptedcom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static void sendToTopic(String topicName, InterconnectObject ico, Map<String,Object> customHeaders) throws InfrastructureException, IOException
topicName - Topic nameico - Interconnect ObjectcustomHeaders - HeadersInfrastructureException - If an infrastructure error occurscom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static void sendToTopic(String topicName, InterconnectObject ico) throws InfrastructureException, IOException
topicName - Topic nameico - Interconnect ObjectInfrastructureException - If an infrastructure error occurscom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static InterconnectObject receiveFromQueue(String queueName, String selector, long timeout, boolean secure) throws InfrastructureException, CryptoException, IOException
queueName - Queue nameselector - JMS selector (or null or empty string := no selector)timeout - Timeout in milliseconds to wait for an Interconnect Objectsecure - Enable secure transport?InfrastructureException - If an infrastructure error occursCryptoException - If the message could not be encryptedcom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static InterconnectConnector.Response receiveFromQueueEnhanced(String queueName, String selector, long timeout, boolean secure) throws InfrastructureException, CryptoException, IOException
queueName - Queue nameselector - JMS selector (or null or empty string := no selector)timeout - Timeout in milliseconds to wait for an Interconnect Objectsecure - Enable secure transport?InfrastructureException - If an infrastructure error occursCryptoException - If the message could not be encryptedcom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static List<InterconnectObject> receiveBulkFromQueue(String queueName, String selector, int maxSize, long timeout, boolean secure) throws InfrastructureException, CryptoException, IOException
queueName - Queue namemaxSize - Max messages to receiveselector - JMS selector (or null or empty string := no selector)timeout - Timeout in milliseconds to wait for an Interconnect Objectsecure - Enable secure transport?InfrastructureException - If an infrastructure error occursCryptoException - If the message could not be encryptedcom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static List<InterconnectConnector.Response> receiveBulkFromQueueEnhanced(String queueName, String selector, int maxSize, long timeout, boolean secure) throws InfrastructureException, CryptoException, IOException
queueName - Queue namemaxSize - Max messages to receiveselector - JMS selector (or null or empty string := no selector)timeout - Timeout in milliseconds to wait for an Interconnect Objectsecure - Enable secure transport?InfrastructureException - If an infrastructure error occursCryptoException - If the message could not be encryptedcom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static InterconnectObject receiveFromTopic(String topicName, String selector, long timeout, boolean secure) throws InfrastructureException, CryptoException, IOException
topicName - Topic nameselector - JMS selector (or null or empty string := no selector)timeout - Timeout in milliseconds to wait for an Interconnect Objectsecure - Enable secure transport?InfrastructureException - If an infrastructure error occursCryptoException - If the message could not be encryptedcom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static InterconnectConnector.Response receiveFromTopicEnhanced(String topicName, String selector, long timeout, boolean secure) throws InfrastructureException, CryptoException, IOException
topicName - Topic nameselector - JMS selector (or null or empty string := no selector)timeout - Timeout in milliseconds to wait for an Interconnect Objectsecure - Enable secure transport?InfrastructureException - If an infrastructure error occursCryptoException - If the message could not be encryptedcom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static List<InterconnectObject> receiveBulkFromTopic(String topicName, String selector, int maxSize, long timeout, boolean secure) throws InfrastructureException, CryptoException, IOException
topicName - Topic nameselector - JMS selector (or null or empty string := no selector)maxSize - Max messages to receivetimeout - Timeout in milliseconds to wait for an Interconnect Objectsecure - Enable secure transport?InfrastructureException - If an infrastructure error occursCryptoException - If the message could not be encryptedcom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static List<InterconnectConnector.Response> receiveBulkFromTopicEnhanced(String topicName, String selector, int maxSize, long timeout, boolean secure) throws InfrastructureException, CryptoException, IOException
topicName - Topic nameselector - JMS selector (or null or empty string := no selector)maxSize - Max messages to receivetimeout - Timeout in milliseconds to wait for an Interconnect Objectsecure - Enable secure transport?InfrastructureException - If an infrastructure error occursCryptoException - If the message could not be encryptedcom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static InterconnectObject request(UUID uuid, String queueName, InterconnectObject requestICO, Map<String,Object> customHeaders, boolean secure, long receiveTimeout, long sendTimeout, int priority) throws InfrastructureException, CryptoException, IOException
uuid - Universally unique identifier of the requestqueueName - Queue namerequestICO - Request Interconnect ObjectcustomHeaders - Headerssecure - Enable secure transport?receiveTimeout - Request timeout (in milliseconds)sendTimeout - Send timeout (in milliseconds)priority - JMS priorityInfrastructureException - If an infrastructure error occursCryptoException - If the message could not be encryptedcom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static InterconnectObject request(UUID uuid, String queueName, InterconnectObject requestICO, Map<String,Object> customHeaders) throws InfrastructureException, IOException
uuid - Universally unique identifier of the requestqueueName - Queue namerequestICO - Request Interconnect ObjectcustomHeaders - HeadersInfrastructureException - If an infrastructure error occurscom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static InterconnectObject request(UUID uuid, String queueName, InterconnectObject requestICO) throws InfrastructureException, IOException
uuid - Universally unique identifier of the requestqueueName - Queue namerequestICO - Request Interconnect ObjectInfrastructureException - If an infrastructure error occurscom.fasterxml.jackson.core.JsonGenerationException - if the JSON data could not be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object could not be mapped to a JSON stringIOException - if an I/O related problem occurredCopyright © 2016–2018 Taimos GmbH. All rights reserved.