Groovy Documentation

com.confluex.mock.http.event
[Groovy] Class MatchingEventLatch

java.lang.Object
  com.confluex.mock.http.event.MatchingEventLatch

@Slf4j
class MatchingEventLatch
extends java.lang.Object

Field Summary
protected java.util.concurrent.atomic.AtomicInteger currentCount

 
Property Summary
HttpRequestMatcher matcher

java.util.concurrent.CountDownLatch target

 
Constructor Summary
MatchingEventLatch(HttpRequestMatcher matcher)

MatchingEventLatch(HttpRequestMatcher matcher, int expected)

 
Method Summary
java.lang.Integer addEvent(ClientRequest request)

java.lang.Boolean await(java.lang.Long timeoutMs)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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()
 

Field Detail

currentCount

protected final java.util.concurrent.atomic.AtomicInteger currentCount


 
Property Detail

matcher

HttpRequestMatcher matcher


target

java.util.concurrent.CountDownLatch target


 
Constructor Detail

MatchingEventLatch

MatchingEventLatch(HttpRequestMatcher matcher)


MatchingEventLatch

MatchingEventLatch(HttpRequestMatcher matcher, int expected)


 
Method Detail

addEvent

java.lang.Integer addEvent(ClientRequest request)


await

java.lang.Boolean await(java.lang.Long timeoutMs)


 

Groovy Documentation