use of com.swiftmq.jms.v610.po.POReconnect in project swiftmq-client by iitsoftware.
the class ConnectionImpl method reconnectAndWait.
private void reconnectAndWait() {
if (reconnector.isDebug())
System.out.println(new Date() + " " + toString() + ": initiate reconnect and wait ...");
lastConnectionLost = System.currentTimeMillis();
Semaphore sem = new Semaphore();
POReconnect po = new POReconnect(sem, this);
connector.dispatch(po);
sem.waitHere();
if (reconnector.isDebug())
System.out.println(new Date() + " " + toString() + ": reconnect done, connection =" + connection);
}
use of com.swiftmq.jms.v610.po.POReconnect in project swiftmq-client by iitsoftware.
the class ConnectionImpl method reconnectAndWait.
private void reconnectAndWait() {
if (reconnector.isDebug())
System.out.println(toString() + ": initiate reconnect and wait ...");
lastConnectionLost = System.currentTimeMillis();
Semaphore sem = new Semaphore();
POReconnect po = new POReconnect(sem, this);
connector.dispatch(po);
sem.waitHere();
if (reconnector.isDebug())
System.out.println(toString() + ": reconnect done, connection =" + connection);
}
use of com.swiftmq.jms.v610.po.POReconnect in project swiftmq-client by iitsoftware.
the class ConnectionImpl method reconnect.
private void reconnect() {
if (reconnector.isDebug())
System.out.println(toString() + ": initiate reconnect...");
lastConnectionLost = System.currentTimeMillis();
POReconnect po = new POReconnect(null, this);
connector.dispatch(po);
}
use of com.swiftmq.jms.v610.po.POReconnect in project swiftmq-client by iitsoftware.
the class ConnectionImpl method reconnect.
private void reconnect() {
if (reconnector.isDebug())
System.out.println(new Date() + " " + toString() + ": initiate reconnect...");
lastConnectionLost = System.currentTimeMillis();
POReconnect po = new POReconnect(null, this);
connector.dispatch(po);
if (requestRegistry != null) {
if (reconnector.isDebug())
System.out.println(new Date() + " " + toString() + ": cancel: retry all requests");
requestRegistry.cancelRetryAllRequests();
}
}
use of com.swiftmq.jms.v610.po.POReconnect in project swiftmq-client by iitsoftware.
the class ConnectionImpl method reconnect.
private void reconnect() {
if (reconnector.isDebug())
System.out.println(toString() + ": initiate reconnect...");
lastConnectionLost = System.currentTimeMillis();
POReconnect po = new POReconnect(null, this);
connector.dispatch(po);
}
Aggregations