servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r410837 - in /incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/client: DefaultServiceMixClient.java ServiceMixClient.java ServiceMixClientFacade.java
Date Thu, 01 Jun 2006 11:09:59 GMT
Author: gnodet
Date: Thu Jun  1 04:09:58 2006
New Revision: 410837

URL: http://svn.apache.org/viewvc?rev=410837&view=rev
Log:
Add the sendSync with timeout method to the client

Modified:
    incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/client/DefaultServiceMixClient.java
    incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/client/ServiceMixClient.java
    incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/client/ServiceMixClientFacade.java

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/client/DefaultServiceMixClient.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/client/DefaultServiceMixClient.java?rev=410837&r1=410836&r2=410837&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/client/DefaultServiceMixClient.java
(original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/client/DefaultServiceMixClient.java
Thu Jun  1 04:09:58 2006
@@ -139,6 +139,10 @@
         return getDeliveryChannel().sendSync(exchange);
     }
 
+    public boolean sendSync(MessageExchange exchange, long timeout) throws MessagingException
{
+        return getDeliveryChannel().sendSync(exchange, timeout);
+    }
+
     public MessageExchange receive() throws MessagingException {
         return getDeliveryChannel().accept();
     }

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/client/ServiceMixClient.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/client/ServiceMixClient.java?rev=410837&r1=410836&r2=410837&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/client/ServiceMixClient.java
(original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/client/ServiceMixClient.java
Thu Jun  1 04:09:58 2006
@@ -67,6 +67,18 @@
     boolean sendSync(MessageExchange exchange) throws MessagingException;
 
     /**
+     * Sends the message exchange to the endpoint, blocking until the send has completed
+     * or the specified timeout has elapsed.
+     *
+     * @param exchange
+     * @param timeout
+     * @throws MessagingException
+     * @return true if the exchange has been processed and returned by the
+     *  servicing component, false otherwise.
+     */
+    boolean sendSync(MessageExchange exchange, long timeout) throws MessagingException;
+
+    /**
      * Receives an inbound message exchange, blocking forever until one is available.
      *
      * @return the received message exchange

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/client/ServiceMixClientFacade.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/client/ServiceMixClientFacade.java?rev=410837&r1=410836&r2=410837&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/client/ServiceMixClientFacade.java
(original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/client/ServiceMixClientFacade.java
Thu Jun  1 04:09:58 2006
@@ -145,6 +145,10 @@
         return getDeliveryChannel().sendSync(exchange);
     }
 
+    public boolean sendSync(MessageExchange exchange, long timeout) throws MessagingException
{
+        return getDeliveryChannel().sendSync(exchange, timeout);
+    }
+
     public MessageExchange receive() throws MessagingException {
         return getDeliveryChannel().accept();
     }



Mime
View raw message