public abstract class EventAllocator extends Object
Constructor and Description |
---|
EventAllocator() |
EventAllocator(Class[] classes)
Create a new
EventAllocator , containing pre-created
Allocator s 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
Event s with generic type of |
public EventAllocator()
public EventAllocator(Class[] classes)
EventAllocator
, containing pre-created
Allocator
s for given es.classes
- public <T> Reference<Event<T>> get(Class<T> klass)
protected abstract <T> Allocator<Event<T>> makeAllocator(Class<T> klass)
Event
s with generic type of public static EventAllocator defaultEventAllocator()
ReferenceCountingAllocator
for
allocating and recycling events.Copyright © 2017. All rights reserved.