[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting ...
Ovidiu Feodorov
ovidiu.feodorov at jboss.com
Sat Jan 20 18:46:02 EST 2007
User: ovidiu
Date: 07/01/20 18:46:02
Modified: src/main/org/jboss/remoting Tag: remoting_2_x Client.java
Log:
minor reformatting
Revision Changes Path
No revision
No revision
1.53.2.14 +21 -41 JBossRemoting/src/main/org/jboss/remoting/Client.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Client.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/Client.java,v
retrieving revision 1.53.2.13
retrieving revision 1.53.2.14
diff -u -b -r1.53.2.13 -r1.53.2.14
--- Client.java 16 Jan 2007 08:10:14 -0000 1.53.2.13
+++ Client.java 20 Jan 2007 23:46:02 -0000 1.53.2.14
@@ -63,7 +63,7 @@
*
* @author <a href="mailto:jhaynie at vocalocity.net">Jeff Haynie</a>
* @author <a href="mailto:telrod at e2technologies.net">Tom Elrod</a>
- * @version $Revision: 1.53.2.13 $
+ * @version $Revision: 1.53.2.14 $
*/
public class Client implements Externalizable
{
@@ -286,30 +286,26 @@
}
/**
- * Adds a connection listener that will be notified if/when the connection
- * to the server fails while the client is idle (no calls being made).
- * The default behavior is to ping for connection every two seconds.
- *
- * @param listener
+ * Adds a connection listener that will be notified if/when the connection to the server fails
+ * while the client is idle (no calls being made). The default behavior is to ping for connection
+ * every two seconds.
*/
public void addConnectionListener(ConnectionListener listener)
{
- addConnectionListener(listener, (int) ConnectionValidator.DEFAULT_PING_PERIOD);
+ addConnectionListener(listener, (int)ConnectionValidator.DEFAULT_PING_PERIOD);
}
/**
- * Adds a connection listener that will be notified if/when the connection
- * to the server fails while the client is idle (no calls being made).
- * The current behavior is to ping the server periodically. The time period
- * is defined by the pingPeriod (which should be in milliseconds).
- *
- * @param listener
+ * Adds a connection listener that will be notified if/when the connection to the server fails
+ * while the client is idle (no calls being made). The current behavior is to ping the server
+ * periodically. The time period is defined by the pingPeriod (which should be in milliseconds).
*/
public void addConnectionListener(ConnectionListener listener, int pingPeriod)
{
if (invoker == null)
{
- throw new RuntimeException("Can not add connection listener to remoting client until client has been connected.");
+ throw new RuntimeException("Can not add connection listener to remoting client " +
+ "until client has been connected.");
}
else
{
@@ -319,6 +315,7 @@
return;
}
}
+
if (connectionValidator == null)
{
connectionValidator = new ConnectionValidator(this, pingPeriod);
@@ -327,11 +324,8 @@
}
/**
- * Removes specified connection listener. Will return true if it has
- * already been registered, false otherwise.
- *
- * @param listener
- * @return
+ * Removes specified connection listener. Will return true if it has already been registered,
+ * false otherwise.
*/
public boolean removeConnectionListener(ConnectionListener listener)
{
@@ -539,7 +533,7 @@
enableLease = false;
}
- if (connectionValidator!=null)
+ if (connectionValidator != null)
{
connectionValidator.stop();
connectionValidator = null;
@@ -557,8 +551,6 @@
/**
* Get the client invoker (transport implementation).
- *
- * @return
*/
public ClientInvoker getInvoker()
{
@@ -566,9 +558,7 @@
}
/**
- * Set the client invoker (transport implementation)
- *
- * @param invoker
+ * Set the client invoker (transport implementation).
*/
public void setInvoker(ClientInvoker invoker)
{
@@ -576,10 +566,7 @@
}
/**
- * Gets the subsystem being used when routing
- * invocation request on the server side.
- *
- * @return
+ * Gets the subsystem being used when routing invocation request on the server side.
*/
public String getSubsystem()
{
@@ -587,12 +574,9 @@
}
/**
- * Sets the subsystem being used when routing invocation requests
- * on the server side. Specifing a subsystem is only needed when
- * server has multiple handlers registered (which will each have their
- * own associated subsystem).
- *
- * @param subsystem
+ * Sets the subsystem being used when routing invocation requests on the server side. Specifing
+ * a subsystem is only needed when server has multiple handlers registered (which will each have
+ * their own associated subsystem).
*/
public void setSubsystem(String subsystem)
{
@@ -600,12 +584,8 @@
}
/**
- * Invokes the server invoker handler with the payload parameter passed.
- * Same as calling invoke(param, null);
- *
- * @param param
- * @return
- * @throws Throwable
+ * Invokes the server invoker handler with the payload parameter passed. Same as calling
+ * invoke(param, null);
*/
public Object invoke(Object param) throws Throwable
{
More information about the jboss-cvs-commits
mailing list