public class BQManager extends AbstractQueuesManager
Modifier and Type | Field and Description |
---|---|
protected int |
maxQueueSize |
log, queuesNb
Constructor and Description |
---|
BQManager(ImporterLogger logger,
int queuesNb,
int maxQueueSize) |
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
protected final int maxQueueSize
public BQManager(ImporterLogger logger, int queuesNb, int maxQueueSize)
public boolean isEmpty(int queue)
QueuesManager
public SourceNode poll(int queue, long timeout, TimeUnit unit) throws InterruptedException
QueuesManager
InterruptedException
public int size(int queue)
QueuesManager
public SourceNode poll(int queue)
QueuesManager
public void put(int queue, SourceNode node) throws InterruptedException
QueuesManager
InterruptedException
public void close()
Copyright © 2017 Nuxeo. All rights reserved.