use of com.swiftmq.jms.v750.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.v750.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.v750.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);
}
Aggregations