<li><ahref="../../../../com/github/lookout/whoas/HookRequest.html"title="class in com.github.lookout.whoas"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../com/github/lookout/whoas/Publisher.html"title="class in com.github.lookout.whoas"><spanclass="typeNameLink">Next Class</span></a></li>
<li><ahref="../../../../com/github/lookout/whoas/AbstractHookQueue.html"title="class in com.github.lookout.whoas">com.github.lookout.whoas.AbstractHookQueue</a></li>
<li>
<ulclass="inheritance">
<li>com.github.lookout.whoas.InMemoryQueue</li>
</ul>
</li>
</ul>
</li>
</ul>
<divclass="description">
<ulclass="blockList">
<liclass="blockList">
<hr>
<br>
<pre>public class <spanclass="typeNameLabel">InMemoryQueue</span>
extends <ahref="../../../../com/github/lookout/whoas/AbstractHookQueue.html"title="class in com.github.lookout.whoas">AbstractHookQueue</a></pre>
<divclass="block">A simple in-memory queue that offers no persistence between process restarts</div>
<h3>Fields inherited from class com.github.lookout.whoas.<ahref="../../../../com/github/lookout/whoas/AbstractHookQueue.html"title="class in com.github.lookout.whoas">AbstractHookQueue</a></h3>
<tdclass="colOne"><code><spanclass="memberNameLink"><ahref="../../../../com/github/lookout/whoas/InMemoryQueue.html#InMemoryQueue-java.util.concurrent.BlockingQueue-">InMemoryQueue</a></span>(java.util.concurrent.BlockingQueue<<ahref="../../../../com/github/lookout/whoas/HookRequest.html"title="class in com.github.lookout.whoas">HookRequest</a>> queue)</code>
<divclass="block">Create the InMemoryQueue with the given Queue object</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><spanclass="memberNameLink"><ahref="../../../../com/github/lookout/whoas/InMemoryQueue.html#InMemoryQueue-com.github.lookout.whoas.WhoasQueueConfig-">InMemoryQueue</a></span>(<ahref="../../../../com/github/lookout/whoas/WhoasQueueConfig.html"title="class in com.github.lookout.whoas">WhoasQueueConfig</a> queueConfig)</code>
<divclass="block">Create the InMemoryQueue from configuration</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method.summary">
<!---->
</a>
<h3>Method Summary</h3>
<tableclass="memberSummary"border="0"cellpadding="3"cellspacing="0"summary="Method Summary table, listing methods, and an explanation">
<divclass="block">Return the number of elements in the queue</div>
</td>
</tr>
<trid="i1"class="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../com/github/lookout/whoas/InMemoryQueue.html#pop-com.github.lookout.whoas.QueueAction-">pop</a></span>(<ahref="../../../../com/github/lookout/whoas/QueueAction.html"title="interface in com.github.lookout.whoas">QueueAction</a> action)</code>
<divclass="block">Performs a blocking pop on the queue and invokes the closure with the
item popped from the queue
If the Closure throws an exception, the dequeued item will be returned
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../com/github/lookout/whoas/InMemoryQueue.html#push-com.github.lookout.whoas.HookRequest-">push</a></span>(<ahref="../../../../com/github/lookout/whoas/HookRequest.html"title="class in com.github.lookout.whoas">HookRequest</a> request)</code>
<divclass="block">Attempt to insert the request into the queue
If the request cannot be inserted, this method will return false,
<h3>Methods inherited from class com.github.lookout.whoas.<ahref="../../../../com/github/lookout/whoas/AbstractHookQueue.html"title="class in com.github.lookout.whoas">AbstractHookQueue</a></h3>
<pre>public InMemoryQueue(<ahref="../../../../com/github/lookout/whoas/WhoasQueueConfig.html"title="class in com.github.lookout.whoas">WhoasQueueConfig</a> queueConfig)</pre>
<divclass="block">Create the InMemoryQueue from configuration</div>
<pre>public InMemoryQueue(java.util.concurrent.BlockingQueue<<ahref="../../../../com/github/lookout/whoas/HookRequest.html"title="class in com.github.lookout.whoas">HookRequest</a>> queue)</pre>
<divclass="block">Create the InMemoryQueue with the given Queue object</div>
<dd><code><ahref="../../../../com/github/lookout/whoas/AbstractHookQueue.html#getSize--">getSize</a></code> in class <code><ahref="../../../../com/github/lookout/whoas/AbstractHookQueue.html"title="class in com.github.lookout.whoas">AbstractHookQueue</a></code></dd>
<pre>public void pop(<ahref="../../../../com/github/lookout/whoas/QueueAction.html"title="interface in com.github.lookout.whoas">QueueAction</a> action)
throws java.lang.InterruptedException,
java.lang.Exception</pre>
<divclass="block">Performs a blocking pop on the queue and invokes the closure with the
item popped from the queue
If the Closure throws an exception, the dequeued item will be returned
<dd><code><ahref="../../../../com/github/lookout/whoas/AbstractHookQueue.html#pop-com.github.lookout.whoas.QueueAction-">pop</a></code> in class <code><ahref="../../../../com/github/lookout/whoas/AbstractHookQueue.html"title="class in com.github.lookout.whoas">AbstractHookQueue</a></code></dd>
<pre>public java.lang.Boolean push(<ahref="../../../../com/github/lookout/whoas/HookRequest.html"title="class in com.github.lookout.whoas">HookRequest</a> request)</pre>
<divclass="block">Attempt to insert the request into the queue
If the request cannot be inserted, this method will return false,
<dd><code><ahref="../../../../com/github/lookout/whoas/AbstractHookQueue.html#push-com.github.lookout.whoas.HookRequest-">push</a></code> in class <code><ahref="../../../../com/github/lookout/whoas/AbstractHookQueue.html"title="class in com.github.lookout.whoas">AbstractHookQueue</a></code></dd>
<li><ahref="../../../../com/github/lookout/whoas/HookRequest.html"title="class in com.github.lookout.whoas"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../com/github/lookout/whoas/Publisher.html"title="class in com.github.lookout.whoas"><spanclass="typeNameLink">Next Class</span></a></li>