You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by st...@apache.org on 2005/11/15 16:04:40 UTC
svn commit: r344373 -
/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/clientapi/InOutMEPClient.java
Author: stevel
Date: Tue Nov 15 07:04:36 2005
New Revision: 344373
URL: http://svn.apache.org/viewcvs?rev=344373&view=rev
Log:
of course, none of this actually propagates down to the Commons Transport.
Modified:
webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/clientapi/InOutMEPClient.java
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/clientapi/InOutMEPClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/clientapi/InOutMEPClient.java?rev=344373&r1=344372&r2=344373&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/clientapi/InOutMEPClient.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/clientapi/InOutMEPClient.java Tue Nov 15 07:04:36 2005
@@ -45,7 +45,9 @@
* MessageContext and the more convients API is provided by the Call
*/
public class InOutMEPClient extends MEPClient {
- protected long timeOutInMilliSeconds = 2000;
+
+
+ protected long timeOutInMilliSeconds = DEFAULT_TIMEOUT_MILLISECONDS;
AxisEngine engine = null;
@@ -77,6 +79,12 @@
protected CallbackReceiver callbackReceiver;
/**
+ * timeout in ms unless stated
+ * {@value}
+ */
+ private static final int DEFAULT_TIMEOUT_MILLISECONDS = 2000;
+
+ /**
* This accepts a ServiceContext, and the ServiceContext should have all the parents set in to it right
* Ideall this should be generated from a WSDL, we do not have it yet.
* <p/>
@@ -434,4 +442,13 @@
this.timeOutInMilliSeconds = timeOutInMilliSeconds;
}
+ /**
+ * This will be used in invoke blocking scenario. Client will wait the amount of time specified here
+ * and if there is no response, call will timeout. This should be given in multiples of 100 and defaults to 2000.
+ *
+ * @return timeOutInMilliSeconds
+ */
+ public long getTimeOutInMilliSeconds() {
+ return timeOutInMilliSeconds;
+ }
}