public class StateEventPool extends Object
| Constructor and Description |
|---|
StateEventPool(MetaStateEvent metaStateEvent,
int size) |
| Modifier and Type | Method and Description |
|---|---|
StateEvent |
borrowEvent()
Borrowing an StateEvent
|
int |
getBufferedEventsSize() |
int |
getSize() |
void |
returnEvents(StateEvent stateEvent)
Collects the used InnerStreamEvents
If the pool has space the returned event will be added to the pool else it will be dropped
|
public StateEventPool(MetaStateEvent metaStateEvent, int size)
public StateEvent borrowEvent()
public void returnEvents(StateEvent stateEvent)
stateEvent - used eventpublic int getBufferedEventsSize()
public int getSize()
Copyright © 2017 WSO2. All rights reserved.