[hornetq-commits] JBoss hornetq SVN: r10666 - in trunk/hornetq-core/src/main/java/org/hornetq: spi/core/remoting and 1 other directories.
do-not-reply at jboss.org
do-not-reply at jboss.org
Mon May 16 11:29:31 EDT 2011
Author: borges
Date: 2011-05-16 11:29:31 -0400 (Mon, 16 May 2011)
New Revision: 10666
Modified:
trunk/hornetq-core/src/main/java/org/hornetq/api/core/client/ServerLocator.java
trunk/hornetq-core/src/main/java/org/hornetq/spi/core/remoting/ConnectorFactory.java
trunk/hornetq-core/src/main/java/org/hornetq/utils/VersionLoader.java
Log:
clean up & spell fixes
Modified: trunk/hornetq-core/src/main/java/org/hornetq/api/core/client/ServerLocator.java
===================================================================
--- trunk/hornetq-core/src/main/java/org/hornetq/api/core/client/ServerLocator.java 2011-05-16 10:37:38 UTC (rev 10665)
+++ trunk/hornetq-core/src/main/java/org/hornetq/api/core/client/ServerLocator.java 2011-05-16 15:29:31 UTC (rev 10666)
@@ -23,18 +23,18 @@
* A ServerLocator
*
* @author Tim Fox
- *
- *
*/
public interface ServerLocator
{
-
- /**
- * This method will disable any checks when a GarbageCollection happens leaving connections open.
- * The JMS Layer will make specific usage of this method, since the ConnectionFactory.finalize should release this.
- *
- * Warn: You may leave resources unnatended if you call this method and don't take care of cleaning the resources yourself.
- */
+
+ /**
+ * This method will disable any checks when a GarbageCollection happens
+ * leaving connections open. The JMS Layer will make specific usage of this
+ * method, since the ConnectionFactory.finalize should release this.
+ *
+ * Warning: You may leave resources unattended if you call this method and
+ * don't take care of cleaning the resources yourself.
+ */
void disableFinalizeCheck();
/**
@@ -244,20 +244,26 @@
*/
void setProducerMaxRate(int producerMaxRate);
- /**
- * Returns whether consumers created through this factory will block while sending message acknowledgements or do it asynchronously.
- *
- * Default value is {@link HornetQClient#DEFAULT_BLOCK_ON_ACKNOWLEDGE}.
- *
- * @return whether consumers will block while sending message acknowledgements or do it asynchronously
- */
+ /**
+ * Returns whether consumers created through this factory will block while
+ * sending message acknowledgments or do it asynchronously.
+ *
+ * Default value is {@link HornetQClient#DEFAULT_BLOCK_ON_ACKNOWLEDGE}.
+ *
+ * @return whether consumers will block while sending message
+ * acknowledgments or do it asynchronously
+ */
boolean isBlockOnAcknowledge();
- /**
- * Sets whether consumers created through this factory will block while sending message acknowledgements or do it asynchronously.
- *
- * @param blockOnAcknowledge <code>true</code> to block when sending message acknowledgements or <code>false</code> to send them asynchronously
- */
+ /**
+ * Sets whether consumers created through this factory will block while
+ * sending message acknowledgments or do it asynchronously.
+ *
+ * @param blockOnAcknowledge
+ * <code>true</code> to block when sending message
+ * acknowledgments or <code>false</code> to send them
+ * asynchronously
+ */
void setBlockOnAcknowledge(boolean blockOnAcknowledge);
/**
@@ -341,30 +347,34 @@
*/
boolean isPreAcknowledge();
- /**
- * Sets to <code>true</code> to pre-acknowledge consumed messages on the server before they are sent to consumers, else set to <code>false</code> to let
- * clients acknowledge the message they consume.
- *
- * @param preAcknowledge <code>true</code> to enable pre-acknowledgement, <code>false</code> else
- */
+ /**
+ * Sets to <code>true</code> to pre-acknowledge consumed messages on the
+ * server before they are sent to consumers, else set to <code>false</code>
+ * to let clients acknowledge the message they consume.
+ *
+ * @param preAcknowledge
+ * <code>true</code> to enable pre-acknowledgment,
+ * <code>false</code> else
+ */
void setPreAcknowledge(boolean preAcknowledge);
- /**
- * Returns the acknowledgements batch size.
- *
- * Default value is {@link HornetQClient#DEFAULT_ACK_BATCH_SIZE}.
- *
- * @return the acknowledgements batch size
- */
+ /**
+ * Returns the acknowledgments batch size.
+ *
+ * Default value is {@link HornetQClient#DEFAULT_ACK_BATCH_SIZE}.
+ *
+ * @return the acknowledgments batch size
+ */
int getAckBatchSize();
- /**
- * Sets the acknowledgements batch size.
- *
- * Value must be equal or greater than 0.
- *
- * @param ackBatchSize acknowledgements batch size
- */
+ /**
+ * Sets the acknowledgments batch size.
+ *
+ * Value must be equal or greater than 0.
+ *
+ * @param ackBatchSize
+ * acknowledgments batch size
+ */
void setAckBatchSize(int ackBatchSize);
/**
Modified: trunk/hornetq-core/src/main/java/org/hornetq/spi/core/remoting/ConnectorFactory.java
===================================================================
--- trunk/hornetq-core/src/main/java/org/hornetq/spi/core/remoting/ConnectorFactory.java 2011-05-16 10:37:38 UTC (rev 10665)
+++ trunk/hornetq-core/src/main/java/org/hornetq/spi/core/remoting/ConnectorFactory.java 2011-05-16 15:29:31 UTC (rev 10666)
@@ -28,7 +28,7 @@
public interface ConnectorFactory
{
/**
- * creates a new instanc of a connector.
+ * creates a new instance of a connector.
*
* @param configuration the configuration
* @param handler the handler
Modified: trunk/hornetq-core/src/main/java/org/hornetq/utils/VersionLoader.java
===================================================================
--- trunk/hornetq-core/src/main/java/org/hornetq/utils/VersionLoader.java 2011-05-16 10:37:38 UTC (rev 10665)
+++ trunk/hornetq-core/src/main/java/org/hornetq/utils/VersionLoader.java 2011-05-16 15:29:31 UTC (rev 10666)
@@ -20,7 +20,6 @@
import java.util.Properties;
import java.util.StringTokenizer;
-import org.hornetq.core.client.impl.ClientSessionFactoryImpl;
import org.hornetq.core.logging.Logger;
import org.hornetq.core.version.Version;
import org.hornetq.core.version.impl.VersionImpl;
@@ -124,7 +123,7 @@
}
catch (IOException e)
{
- // if we get here then the messaging hasnt been built properly and the version.properties is skewed in some
+ // if we get here then the messaging hasn't been built properly and the version.properties is skewed in some
// way
throw new RuntimeException("unable to load " + VersionLoader.PROP_FILE_NAME, e);
}
More information about the hornetq-commits
mailing list