public final class EventPool
extends java.lang.Object
implements java.lang.Runnable
EventPool
- The mail event pool.Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the event pool.
|
static EventPool |
getInstance()
Gets the event pool instance.
|
static void |
initInstance()
Initializes this event pool.
|
void |
put(PooledEvent pooledEvent)
Puts given pooled event into this pool.
|
static void |
releaseInstance()
Releases this event pool.
|
void |
removeByUser(int userId,
int contextId)
Removes all pooled events from this pool associated with given user.
|
void |
run() |
public static void initInstance()
public static void releaseInstance()
public static EventPool getInstance()
public void removeByUser(int userId, int contextId)
userId
- The user IDcontextId
- The context IDpublic void put(PooledEvent pooledEvent)
pooledEvent
- The pooled event to put.public void clear()
public void run()
run
in interface java.lang.Runnable