A C D E F G H I M N O P Q R S W 

A

AbstractMessageHandler<T,R> - Class in com.blacklocus.qs
This class provides boring default implementations for the MessageHandler interface.
AbstractMessageHandler() - Constructor for class com.blacklocus.qs.AbstractMessageHandler
 
AbstractQueueItemHandler<Q,T,R> - Class in com.blacklocus.qs
 
AbstractQueueItemHandler() - Constructor for class com.blacklocus.qs.AbstractQueueItemHandler
 

C

close() - Method in class com.blacklocus.qs.ExternalQueueItemProvider
 
com.blacklocus.misc - package com.blacklocus.misc
 
com.blacklocus.qs - package com.blacklocus.qs
 
convert(Q) - Method in interface com.blacklocus.qs.QueueItemHandler
Convert the given queue item on the queue item processing thread.

D

DEFAULT_SLEEP_MS - Static variable in class com.blacklocus.qs.QueueReader
default sleep time in ms between idle queue reads
delete(Message) - Method in interface com.blacklocus.qs.MessageProvider
Delete the given message.

E

ExceptingRunnable - Class in com.blacklocus.misc
 
ExceptingRunnable() - Constructor for class com.blacklocus.misc.ExceptingRunnable
 
executor - Variable in class com.blacklocus.qs.QueueReader
 
ExternalQueueItemProvider<Q> - Class in com.blacklocus.qs
 
ExternalQueueItemProvider() - Constructor for class com.blacklocus.qs.ExternalQueueItemProvider
 

F

filtered(MessageProvider, Predicate<Message>) - Static method in class com.blacklocus.qs.MessageProviders
Filters the values returned by Iterator.next() by some filter.

G

getAttributes() - Method in interface com.blacklocus.qs.Message
Return the message attributes as a map.
getBody() - Method in interface com.blacklocus.qs.Message
Return the message body content.
getId() - Method in interface com.blacklocus.qs.Message
Return the unique identifier for this message.
getReceipt() - Method in interface com.blacklocus.qs.Message
Return the unique message receipt used to signal an instance of this message was received and can be acknowledged or deleted.
go() - Method in class com.blacklocus.misc.ExceptingRunnable
 
go() - Method in class com.blacklocus.qs.QueueReader
 

H

handler - Variable in class com.blacklocus.qs.QueueReader
 
hasNext() - Method in class com.blacklocus.qs.ExternalQueueItemProvider
 

I

iterator() - Method in class com.blacklocus.qs.ExternalQueueItemProvider
 

M

Message - Interface in com.blacklocus.qs
This is a simple message abstraction.
MessageHandler<T,R> - Interface in com.blacklocus.qs
Implementations of this class perform message conversion, processing, error handling and hand off of a message retrieved from a queue.
MessageProvider - Interface in com.blacklocus.qs
Implementations of this interface provide a mechanism for retrieving messages.
MessageProviders - Class in com.blacklocus.qs
Provide some common functionality to wrap around existing MessageProvider implementations.
MessageProviders() - Constructor for class com.blacklocus.qs.MessageProviders
 
MessageProviders.NextCallback - Interface in com.blacklocus.qs
 
MessageQueueReader<T,R> - Class in com.blacklocus.qs
This class provides a general purpose "grab thing off queue and process it with threads" abstraction, decoupling the queue reading thread from the pool of processing threads.
MessageQueueReader(MessageProvider, MessageHandler<T, R>, ExecutorService) - Constructor for class com.blacklocus.qs.MessageQueueReader
Construct a new MessageQueueReader with the default idle timeout.
MessageQueueReader(MessageProvider, MessageHandler<T, R>, ExecutorService, long) - Constructor for class com.blacklocus.qs.MessageQueueReader
Construct a new MessageQueueReader with the given timeout.

N

newDefaultMessageProvider(MessageProvider, long) - Static method in class com.blacklocus.qs.MessageProviders
Chain together a safe and an empty message return tracking MessageProvider.
newDefaultMessageProvider(MessageProvider, long, int) - Static method in class com.blacklocus.qs.MessageProviders
Chain together a safe and an empty message return tracking MessageProvider.
newSafeMessageProvider(MessageProvider) - Static method in class com.blacklocus.qs.MessageProviders
Wrap each call of the given MessageProvider with a try/catch such that they always return correctly without throwing an Exception.
newUntilNextEmptyMessageProvider(MessageProvider, long) - Static method in class com.blacklocus.qs.MessageProviders
Wrap an existing MessageProvider such that after a specified number of calls to next() that results in 0 messages being returned, hasNext() flips over to return false.
newUntilNextEmptyOrMaximumMessageProvider(MessageProvider, long, int) - Static method in class com.blacklocus.qs.MessageProviders
Wrap an existing MessageProvider such that after a specified number of calls to next() that results in 0 messages being returned, or the maximum limit of messages is reached, hasNext() flips over to return false.
newUntilSlowOrMaximumMessageProvider(MessageProvider, long, int, int) - Static method in class com.blacklocus.qs.MessageProviders
Like MessageProviders.newUntilNextEmptyOrMaximumMessageProvider(MessageProvider, long, int) but instead of detecting numerous "empties" considers numerous "slows", where that is defined to be calls to next that produce less than the specified batch threshold.
next() - Method in class com.blacklocus.qs.ExternalQueueItemProvider
 
next(Collection<Message>) - Method in interface com.blacklocus.qs.MessageProviders.NextCallback
 

O

onComplete(Q) - Method in class com.blacklocus.qs.AbstractQueueItemHandler
 
onComplete(Q) - Method in interface com.blacklocus.qs.QueueItemHandler
Called whether the processing results in success or failure on the queue item processing thread.
onError(Q, Throwable) - Method in class com.blacklocus.qs.AbstractQueueItemHandler
 
onError(Q, Throwable) - Method in interface com.blacklocus.qs.QueueItemHandler
Called when an Exception occurs while processing the given queue item on the queue item processing thread.
onSuccess(Q, R) - Method in class com.blacklocus.qs.AbstractQueueItemHandler
 
onSuccess(Q, R) - Method in interface com.blacklocus.qs.QueueItemHandler
Called when processing completes successfully on the queue item processing thread.

P

process(T) - Method in interface com.blacklocus.qs.QueueItemHandler
Return the result of processing a queue item of the given converted type on the queue item processing thread.
put(Q) - Method in class com.blacklocus.qs.ExternalQueueItemProvider
 

Q

QueueItemHandler<Q,T,R> - Interface in com.blacklocus.qs
More generalized form of MessageHandler
QueueItemProvider<Q> - Interface in com.blacklocus.qs
More generalized version of MessageProvider
queueItemProvider - Variable in class com.blacklocus.qs.QueueReader
 
QueueReader<Q,T,R> - Class in com.blacklocus.qs
A more generalized version of the MessageQueueReader
QueueReader(Iterable<Collection<Q>>, QueueItemHandler<Q, T, R>, ExecutorService) - Constructor for class com.blacklocus.qs.QueueReader
Construct a new MessageQueueReader with the default idle timeout.
QueueReader(Iterable<Collection<Q>>, QueueItemHandler<Q, T, R>, ExecutorService, long) - Constructor for class com.blacklocus.qs.QueueReader
Construct a new MessageQueueReader with the given timeout.

R

remove() - Method in class com.blacklocus.qs.ExternalQueueItemProvider
 
run() - Method in class com.blacklocus.misc.ExceptingRunnable
 

S

scanningCallback(MessageProvider, MessageProviders.NextCallback) - Static method in class com.blacklocus.qs.MessageProviders
Applies an arbitrary callback to the results of calls to Iterator.next() before bubbling onward.
sleepMs - Variable in class com.blacklocus.qs.QueueReader
 

W

withFuture(Q, Future<Pair<Q, R>>) - Method in class com.blacklocus.qs.AbstractQueueItemHandler
 
withFuture(Q, Future<Pair<Q, R>>) - Method in interface com.blacklocus.qs.QueueItemHandler
Called after the queue item is retrieved off of the queue and handed off to an Executor for processing.
A C D E F G H I M N O P Q R S W