Publisher is the class responsible for implementing the *actual* HTTP request logic for Whoas
Constructor and description |
---|
Publisher
() |
Type | Name and description |
---|---|
void |
backoffSleep(java.lang.Long attemptNumber) Sleep the current thread the appropriate amount of time for the attemptNumber |
java.lang.Boolean |
publish(HookRequest request) Publish the request using the appropriate backoff and retry logic defined in the Whoas documentation |
java.lang.Boolean |
shouldRetry(javax.ws.rs.core.Response response) Determine whether this response meets our criteria for retry |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Sleep the current thread the appropriate amount of time for the attemptNumber
Publish the request using the appropriate backoff and retry logic defined in the Whoas documentation
Determine whether this response meets our criteria for retry