public class CQManager extends AbstractQueuesManager
log, queuesNb
Constructor and Description |
---|
CQManager(File basePath,
ImporterLogger logger,
int queuesNb,
boolean append) |
CQManager(ImporterLogger logger,
int queuesNb) |
CQManager(ImporterLogger logger,
int queuesNb,
boolean append) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
isEmpty(int queue)
Returns true if there is no element in the queue.
|
SourceNode |
poll(int queue)
Get a node from a queue.
|
SourceNode |
poll(int queue,
long timeout,
TimeUnit unit)
Get a node from a queue, with a timeout.
|
void |
put(int queue,
SourceNode node)
Put a node into a queue.
|
int |
size(int queue)
Returns the number of elements in the queue.
|
count
public CQManager(ImporterLogger logger, int queuesNb)
public CQManager(ImporterLogger logger, int queuesNb, boolean append)
public CQManager(File basePath, ImporterLogger logger, int queuesNb, boolean append)
public void put(int queue, SourceNode node) throws InterruptedException
QueuesManager
InterruptedException
public SourceNode poll(int queue)
QueuesManager
public SourceNode poll(int queue, long timeout, TimeUnit unit) throws InterruptedException
QueuesManager
InterruptedException
public boolean isEmpty(int queue)
QueuesManager
public int size(int queue)
QueuesManager
public void close()
Copyright © 2017 Nuxeo. All rights reserved.