Search in sources :

Example 1 with Close

use of com.swiftmq.impl.store.standard.cache.po.Close in project swiftmq-ce by iitsoftware.

the class ShrinkProcessor method close.

public void close() {
    if (ctx.traceSpace.enabled)
        ctx.traceSpace.trace(ctx.storeSwiftlet.getName(), toString() + "/close ...");
    Semaphore sem = new Semaphore();
    pipelineQueue.enqueue(new Close(sem));
    sem.waitHere();
    pipelineQueue.close();
    if (ctx.traceSpace.enabled)
        ctx.traceSpace.trace(ctx.storeSwiftlet.getName(), toString() + "/close done");
}
Also used : Close(com.swiftmq.impl.store.standard.cache.po.Close) Semaphore(com.swiftmq.tools.concurrent.Semaphore)

Aggregations

Close (com.swiftmq.impl.store.standard.cache.po.Close)1 Semaphore (com.swiftmq.tools.concurrent.Semaphore)1