Skip to content

Commit

Permalink
spelling fix (milliseconds)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhusar authored and bstansberry committed Sep 18, 2012
1 parent 731c63e commit c6c1900
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions build/src/main/resources/docs/schema/jboss-ejb-client_1_1.xsd
Expand Up @@ -158,7 +158,7 @@
<xsd:attribute name="connect-timeout" type="xsd:long" use="optional">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The timeout in milli seconds while creating a connection for the nodes in the cluster
The timeout in milliseconds while creating a connection for the nodes in the cluster
</documentation>
</annotation>
</xsd:attribute>
Expand Down Expand Up @@ -225,7 +225,7 @@
<xsd:attribute name="connect-timeout" type="xsd:long" use="optional">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The timeout in milli seconds while creating a connection for the node
The timeout in milliseconds while creating a connection for the node
</documentation>
</annotation>
</xsd:attribute>
Expand Down
8 changes: 4 additions & 4 deletions build/src/main/resources/docs/schema/jboss-ejb-client_1_2.xsd
Expand Up @@ -75,7 +75,7 @@
<xsd:attribute name="invocation-timeout" type="xsd:long" use="optional">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
A timeout, in milli seconds, that will be used for EJB invocations. A value of zero
A timeout, in milliseconds, that will be used for EJB invocations. A value of zero
or a negative value will imply a "wait forever" semantic where the invocation will never timeout
and the client will wait for the invocation result indefinitely.
</documentation>
Expand Down Expand Up @@ -142,7 +142,7 @@
<xsd:attribute name="connect-timeout" type="xsd:long" use="optional">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The timeout, in milli seconds, to be used while creating a connection
The timeout, in milliseconds, to be used while creating a connection
</documentation>
</annotation>
</xsd:attribute>
Expand Down Expand Up @@ -194,7 +194,7 @@
<xsd:attribute name="connect-timeout" type="xsd:long" use="optional">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The timeout in milli seconds while creating a connection for the nodes in the cluster
The timeout in milliseconds while creating a connection for the nodes in the cluster
</documentation>
</annotation>
</xsd:attribute>
Expand Down Expand Up @@ -261,7 +261,7 @@
<xsd:attribute name="connect-timeout" type="xsd:long" use="optional">
<annotation xmlns="http://www.w3.org/2001/XMLSchema">
<documentation>
The timeout in milli seconds while creating a connection for the node
The timeout in milliseconds while creating a connection for the node
</documentation>
</annotation>
</xsd:attribute>
Expand Down
Expand Up @@ -376,7 +376,7 @@ public Date getInitialExpiration() {
}

/**
* Returns the interval (in milli seconds), between timeouts, of this timer.
* Returns the interval (in milliseconds), between timeouts, of this timer.
*
* @return
*/
Expand Down
Expand Up @@ -404,7 +404,7 @@ public Collection<Timer> getTimers() throws IllegalStateException, EJBException
* @param initialExpiration The {@link java.util.Date} at which the first timeout should occur.
* <p>If the date is in the past, then the timeout is triggered immediately
* when the timer moves to {@link TimerState#ACTIVE}</p>
* @param intervalDuration The interval (in milli seconds) between consecutive timeouts for the newly created timer.
* @param intervalDuration The interval (in milliseconds) between consecutive timeouts for the newly created timer.
* <p>Cannot be a negative value. A value of 0 indicates a single timeout action</p>
* @param info {@link java.io.Serializable} info that will be made available through the newly created timer's {@link javax.ejb.Timer#getInfo()} method
* @param persistent True if the newly created timer has to be persistent
Expand Down Expand Up @@ -823,13 +823,13 @@ protected void scheduleTimeout(TimerImpl timer, boolean newTimer) {
final Task task = new Task(timerTask);
if (intervalDuration > 0) {
ROOT_LOGGER.debug("Scheduling timer " + timer + " at fixed rate, starting at " + delay
+ " milli seconds from now with repeated interval=" + intervalDuration);
+ " milliseconds from now with repeated interval=" + intervalDuration);
// schedule the task
this.timerInjectedValue.getValue().scheduleAtFixedRate(task, delay, intervalDuration);
// maintain it in timerservice for future use (like cancellation)
this.scheduledTimerFutures.put(timer.getId(), task);
} else {
ROOT_LOGGER.debug("Scheduling a single action timer " + timer + " starting at " + delay + " milli seconds from now");
ROOT_LOGGER.debug("Scheduling a single action timer " + timer + " starting at " + delay + " milliseconds from now");
// schedule the task
this.timerInjectedValue.getValue().schedule(task, delay);
// maintain it in timerservice for future use (like cancellation)
Expand Down
Expand Up @@ -177,7 +177,7 @@ private class ThreadHoldingWriteLock implements Runnable {
private Lock lock;

/**
* The amount of time, in milli seconds, this {@link ThreadHoldingWriteLock}
* The amount of time, in milliseconds, this {@link ThreadHoldingWriteLock}
* will sleep for in its {@link #run()} method
*/
private long processingTime;
Expand All @@ -192,7 +192,7 @@ private class ThreadHoldingWriteLock implements Runnable {
*
* @param latch A latch for notifying any waiting threads
* @param lock A lock that will be used for obtaining a lock during processing
* @param processingTime The amount of time in milli seconds, this thread will sleep (a.k.a process)
* @param processingTime The amount of time in milliseconds, this thread will sleep (a.k.a process)
* in its {@link #run()} method
*/
public ThreadHoldingWriteLock(CountDownLatch latch, Lock lock, long processingTime) {
Expand All @@ -202,7 +202,7 @@ public ThreadHoldingWriteLock(CountDownLatch latch, Lock lock, long processingTi
}

/**
* Obtains a lock, sleeps for {@link #processingTime} milli seconds and then unlocks the lock
* Obtains a lock, sleeps for {@link #processingTime} milliseconds and then unlocks the lock
*
* @see Runnable#run()
*/
Expand Down
Expand Up @@ -33,9 +33,9 @@ public abstract class AbstractSlowBean {

public void delay(final long delayInMilliSec) {
try {
logger.info("Sleeping for " + delayInMilliSec + " milli seconds");
logger.info("Sleeping for " + delayInMilliSec + " milliseconds");
Thread.sleep(delayInMilliSec);
logger.info("Woke up after " + delayInMilliSec + " milli seconds");
logger.info("Woke up after " + delayInMilliSec + " milliseconds");
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
Expand Down
Expand Up @@ -327,7 +327,7 @@ public void testAsyncFutureMethodOnSLSB() throws Exception {
// invoke the asynchronous method
final Future<String> futureEcho = echoRemote.asyncEcho(message, DELAY);
final long end = System.currentTimeMillis();
logger.info("Asynchronous invocation returned a Future: " + futureEcho + " in " + (end - start) + " milli seconds");
logger.info("Asynchronous invocation returned a Future: " + futureEcho + " in " + (end - start) + " milliseconds");
// test that the invocation did not act like a synchronous invocation and instead returned "immediately"
Assert.assertFalse("Asynchronous invocation behaved like a synchronous invocation", (end - start) >= DELAY);
Assert.assertNotNull("Future is null", futureEcho);
Expand Down
Expand Up @@ -58,7 +58,7 @@ public String echo(String message) {
@Asynchronous
@Override
public Future<String> asyncEcho(final String message, final long delayInMilliSec) {
logger.info("Going to delay the echo of \"" + message + "\" for " + delayInMilliSec + " milli seconds");
logger.info("Going to delay the echo of \"" + message + "\" for " + delayInMilliSec + " milliseconds");
try {
Thread.sleep(delayInMilliSec);
} catch (InterruptedException e) {
Expand Down
Expand Up @@ -52,7 +52,7 @@ public String echo(String message) {
@Asynchronous
@Override
public Future<String> asyncEcho(String message, long delayInMilliSec) {
logger.info("Going to delay the echo of \"" + message + "\" for " + delayInMilliSec + " milli seconds");
logger.info("Going to delay the echo of \"" + message + "\" for " + delayInMilliSec + " milliseconds");
try {
Thread.sleep(delayInMilliSec);
} catch (InterruptedException e) {
Expand Down

0 comments on commit c6c1900

Please sign in to comment.