E - public class EventQueue<E> extends Object
| Constructor and Description |
|---|
EventQueue() |
| Modifier and Type | Method and Description |
|---|---|
LinkedBlockingQueue<org.wso2.carbon.databridge.commons.Event> |
getAndResetQueue() |
org.wso2.carbon.databridge.commons.Event |
poll()
Polls the event queue and updates the dispatching state of the queue
|
boolean |
put(org.wso2.carbon.databridge.commons.Event event)
Puts the event to the Queue and informs the dispatching state of the queue
|
short |
tryPut(org.wso2.carbon.databridge.commons.Event event) |
public org.wso2.carbon.databridge.commons.Event poll()
public boolean put(org.wso2.carbon.databridge.commons.Event event)
throws InterruptedException
event - to be sentInterruptedExceptionpublic short tryPut(org.wso2.carbon.databridge.commons.Event event)
throws InterruptedException
InterruptedExceptionpublic LinkedBlockingQueue<org.wso2.carbon.databridge.commons.Event> getAndResetQueue()
Copyright © 2015 WSO2. All rights reserved.