Public Member Functions | |
void | add (E e) |
Add a content object to the queue for processing. | |
void | run () |
Asynchronously dequeue and process data from a ContentHandler. | |
Protected Member Functions | |
boolean | checkShutdown () |
Override for different behavior. | |
abstract void | process (E e) |
Process the data from a ContentHandler asynchronously. | |
Protected Attributes | |
Queue< E > | _queue = new ConcurrentLinkedQueue<E>() |
boolean | _isRunning = false |
A new processing thread is started only when necessary.
void org.ccnx.ccn.impl.QueuedContentHandler< E >.add | ( | E | e | ) |
Add a content object to the queue for processing.
If we aren't running a processing thread right now, start one.
ci | encapsulated data from a content handler |
boolean org.ccnx.ccn.impl.QueuedContentHandler< E >.checkShutdown | ( | ) | [protected] |
Override for different behavior.
abstract void org.ccnx.ccn.impl.QueuedContentHandler< E >.process | ( | E | e | ) | [protected, pure virtual] |
Process the data from a ContentHandler asynchronously.
co | - the ContentObject | |
interest | - the Interest |