public abstract class EventAllocator extends Object
| Constructor and Description |
|---|
EventAllocator() |
EventAllocator(Class[] classes)
Create a new
EventAllocator, containing pre-created
Allocators for given es. |
| Modifier and Type | Method and Description |
|---|---|
static EventAllocator |
defaultEventAllocator()
Default Event Allocator, uses
ReferenceCountingAllocator for
allocating and recycling events. |
<T> Reference<Event<T>> |
get(Class<T> klass)
Allocate an object from the internal pool, based on the type of Event.
|
protected abstract <T> Allocator<Event<T>> |
makeAllocator(Class<T> klass)
Make a new allocator for
Events with generic type of |
public EventAllocator()
public EventAllocator(Class[] classes)
EventAllocator, containing pre-created
Allocators for given es.classes - public <T> Reference<Event<T>> get(Class<T> klass)
protected abstract <T> Allocator<Event<T>> makeAllocator(Class<T> klass)
Events with generic type of public static EventAllocator defaultEventAllocator()
ReferenceCountingAllocator for
allocating and recycling events.Copyright © 2016. All rights reserved.