Search in sources :

Example 1 with POReconnect

use of com.swiftmq.jms.v630.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);
}
Also used : POReconnect(com.swiftmq.jms.v750.po.POReconnect) Semaphore(com.swiftmq.tools.concurrent.Semaphore)

Example 2 with POReconnect

use of com.swiftmq.jms.v630.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);
}
Also used : POReconnect(com.swiftmq.jms.v610.po.POReconnect) Semaphore(com.swiftmq.tools.concurrent.Semaphore)

Example 3 with POReconnect

use of com.swiftmq.jms.v630.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);
}
Also used : POReconnect(com.swiftmq.jms.v610.po.POReconnect)

Example 4 with POReconnect

use of com.swiftmq.jms.v630.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();
    }
}
Also used : POReconnect(com.swiftmq.jms.v750.po.POReconnect)

Example 5 with POReconnect

use of com.swiftmq.jms.v630.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);
}
Also used : POReconnect(com.swiftmq.jms.v630.po.POReconnect)

Aggregations

Semaphore (com.swiftmq.tools.concurrent.Semaphore)4 POReconnect (com.swiftmq.jms.v600.po.POReconnect)2 POReconnect (com.swiftmq.jms.v610.po.POReconnect)2 POReconnect (com.swiftmq.jms.v630.po.POReconnect)2 POReconnect (com.swiftmq.jms.v750.po.POReconnect)2