mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/branches/activemq-4.0@439941 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3b8ad873f8
commit
cde8b34227
|
@ -1367,6 +1367,7 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
|
|||
try {
|
||||
brokerInfoReceived.await();
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
throw JMSExceptionSupport.create(e);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -394,6 +394,7 @@ public class ActiveMQMessageConsumer implements MessageAvailableConsumer, StatsC
|
|||
}
|
||||
}
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
throw JMSExceptionSupport.create(e);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -138,6 +138,7 @@ public class SimpleDiscoveryAgent implements DiscoveryAgent {
|
|||
|
||||
sleepMutex.wait(event.reconnectDelay);
|
||||
}catch(InterruptedException ie){
|
||||
Thread.currentThread().interrupt();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue