A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

AbstractHookQueue - Class in com.github.lookout.whoas
Interface defining how 'HookQueue' providers should behave
AbstractHookRunner - Class in com.github.lookout.whoas
AbstractHookRunner(AbstractHookQueue, Publisher) - Constructor in AbstractHookRunner

B

backoffSleep(Long) - Method in Publisher
Sleep the current thread the appropriate amount of time for the attemptNumber
buildQueue() - Method in WhoasFactory
Allocate and return the queue based on stored queue type.
buildRunner(AbstractHookQueue) - Method in WhoasFactory
Allocate and return runner based on stored runner type

C

D

E

F

G

getPublisher() - Method in AbstractHookRunner
getSize() - Method in AbstractHookQueue
Return the size of the queue, may not be implemented by some providers in which case it will return -1
getSize() - Method in InMemoryQueue
Return the number of elements in the queue
getSize() - Method in RedisQueue
Return the number of elements in the queue
getWhoasFactory(T) - Method in WhoasConfiguration

H

HookRequest - Class in com.github.lookout.whoas
HookRequest(String, String, String) - Constructor in HookRequest
Default constructor for creating a simple HookRequest with a URL and the POST data to be delivered to that URL

I

InMemoryQueue - Class in com.github.lookout.whoas
A simple in-memory queue that offers no persistence between process restarts
InMemoryQueue(Queue<HookRequest>) - Constructor in InMemoryQueue
Create the InMemoryQueue with the given Queue object

J

K

keepGoing - Field in AbstractHookRunner

L

M

N

O

P

pop(Closure) - Method in AbstractHookQueue
pop(Closure) - Method in InMemoryQueue
Performs a blocking pop on the queue and invokes the closure with the item popped from the queue
pop(Closure) - Method in RedisQueue
Performs a blocking pop on the queue and invokes the closure with the item popped from the queue
publish(HookRequest) - Method in Publisher
Publish the request using the appropriate backoff and retry logic defined in the Whoas documentation
Publisher - Class in com.github.lookout.whoas
Publisher is the class responsible for implementing the *actual* HTTP request logic for Whoas
publisher - Field in AbstractHookRunner
Publisher() - Constructor in Publisher
push(HookRequest) - Method in AbstractHookQueue
push(HookRequest) - Method in InMemoryQueue
Attempt to insert the request into the queue
push(HookRequest) - Method in RedisQueue
The blpop returns list of strings (key and value)

Q

queue - Field in AbstractHookRunner

R

RedisQueue - Class in com.github.lookout.whoas
A redis queue that offers distributed and persistent queue
RedisQueue() - Constructor in RedisQueue
Default constructor
run() - Method in AbstractHookRunner
Block forever and run the runner's runloop.
run() - Method in SequentialHookRunner
Execute an infinitely blocking single-threaded runloop

S

SequentialHookRunner - Class in com.github.lookout.whoas
The SequentialHookRunner is will dequeue HookRequest items from the configured AbstractHookQueue and publish those webhooks sequentially.
shouldRetry(Response) - Method in Publisher
Determine whether this response meets our criteria for retry
start() - Method in AbstractHookQueue
start() - Method in RedisQueue
Setup the Redis client
started - Field in AbstractHookQueue
stop() - Method in AbstractHookQueue
stop() - Method in AbstractHookRunner
Tell the runloop to stop
stop() - Method in RedisQueue
Setup jedis pool

T

U

V

W

WhoasConfiguration - Interface in com.github.lookout.whoas
The interface to create the whoas factory based on configuration The client of whoas will call with the configuration to create the whoas factory.
WhoasFactory - Class in com.github.lookout.whoas
This factory will allow clients of whoas to build different queues like in memory, persistent etc and runners like sequential.
WhoasQueueConfig - Class in com.github.lookout.whoas
Whoas Queue Configuration
withRedis(Closure) - Method in RedisQueue
Allocate redis client from the pool

X

Y

Z

_

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _