Hiram R. Chirino 2006-09-04 05:50:43 +00:00
parent 3b8ad873f8
commit cde8b34227
13 changed files with 18 additions and 2 deletions

View File

@ -1367,6 +1367,7 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
try {
brokerInfoReceived.await();
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw JMSExceptionSupport.create(e);
}
}

View File

@ -143,6 +143,7 @@ public class ActiveMQInputStream extends InputStream implements ActiveMQDispatch
try {
md = unconsumedMessages.dequeue(-1);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw JMSExceptionSupport.create(e);
}

View File

@ -394,6 +394,7 @@ public class ActiveMQMessageConsumer implements MessageAvailableConsumer, StatsC
}
}
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw JMSExceptionSupport.create(e);
}
}

View File

@ -1344,6 +1344,7 @@ public class ActiveMQSession implements Session, QueueSession, TopicSession, Sta
try {
executor.execute(messageDispatch);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
connection.onAsyncException(e);
}
}

View File

@ -114,6 +114,7 @@ public class ActiveMQSessionExecutor implements Task {
taskRunner.shutdown();
}
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw JMSExceptionSupport.create(e);
}
}
@ -156,4 +157,4 @@ public class ActiveMQSessionExecutor implements Task {
return messageQueue.removeAll();
}
}
}

View File

@ -307,6 +307,7 @@ public class JournalPersistenceAdapter implements PersistenceAdapter, JournalEve
}
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
log.warn("Request to start checkpoint failed: " + e, e);
}
}

View File

@ -306,6 +306,7 @@ public class QuickJournalPersistenceAdapter implements PersistenceAdapter, Journ
}
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
log.warn("Request to start checkpoint failed: " + e, e);
}
}

View File

@ -98,6 +98,7 @@ class DedicatedTaskRunner implements TaskRunner {
} catch (InterruptedException e) {
// Someone really wants this thread to die off.
Thread.currentThread().interrupt();
} finally {
// Make sure we notify any waiting threads that thread
// has terminated.
@ -107,4 +108,4 @@ class DedicatedTaskRunner implements TaskRunner {
}
}
}
}
}

View File

@ -81,6 +81,7 @@ public class WireFormatNegotiator extends TransportFilter {
if( !readyCountDownLatch.await(negotiateTimeout, TimeUnit.MILLISECONDS) )
throw new IOException("Wire format negociation timeout: peer did not send his wire format.");
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new InterruptedIOException();
}
super.oneway(command);

View File

@ -138,6 +138,7 @@ public class SimpleDiscoveryAgent implements DiscoveryAgent {
sleepMutex.wait(event.reconnectDelay);
}catch(InterruptedException ie){
Thread.currentThread().interrupt();
return;
}
}

View File

@ -112,6 +112,7 @@ public class FailoverTransport implements CompositeTransport {
handleTransportFailure(error);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
transportListener.onException(new InterruptedIOException());
}
}
@ -345,6 +346,7 @@ public class FailoverTransport implements CompositeTransport {
reconnectMutex.wait(1000);
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
log.debug("Interupted: " + e, e);
}
}
@ -394,6 +396,7 @@ public class FailoverTransport implements CompositeTransport {
}
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
// Some one may be trying to stop our thread.
throw new InterruptedIOException();
}

View File

@ -142,6 +142,7 @@ public class FanoutTransport implements CompositeTransport {
}
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
transportListener.onException(new InterruptedIOException());
}
}
@ -394,6 +395,7 @@ public class FanoutTransport implements CompositeTransport {
}
} catch (InterruptedException e) {
// Some one may be trying to stop our thread.
Thread.currentThread().interrupt();
throw new InterruptedIOException();
}
}

View File

@ -407,6 +407,7 @@ public class UdpTransport extends TransportThreadSupport implements Transport, S
try {
Thread.sleep(BIND_ATTEMPT_DELAY);
} catch (InterruptedException e1) {
Thread.currentThread().interrupt();
throw e;
}
}