Package | Description |
---|---|
com.flyingspaniel.nava.emit | |
com.flyingspaniel.nava.request | |
com.flyingspaniel.nava.utils |
Modifier and Type | Class and Description |
---|---|
class |
Emitter
An implementation of a node.js-style Emitter, composed of a Map of Emit.IListenerList
|
Modifier and Type | Method and Description |
---|---|
<A0> Emit.IEmitter |
Emit.IEmitter.addListener(Object eventID,
Emit.IListener<A0> listener)
Add a listener for the specific eventID
|
<A0> Emit.IEmitter |
Emit.IEmitter.on(Object eventID,
Emit.IListener<A0> listener)
Syntactic sugar, same as addListener()
|
<A0> Emit.IEmitter |
Emit.IEmitter.once(Object eventID,
Emit.IListener<A0> listener)
Add a listener that will only receive one event, then get disconnected
|
<A0> Emit.IEmitter |
Emit.IEmitter.removeAllListeners(Object eventID)
Remove all listeners for the specified eventID
|
<A0> Emit.IEmitter |
Emit.IEmitter.removeListener(Object eventID,
Emit.IListener<A0> listener)
Remove a listener for the specific eventID
|
Modifier and Type | Method and Description |
---|---|
static int |
Emit.listenerCount(Emit.IEmitter emitter,
Object event)
To mimic node.js EventEmitter, this is static.
|
Modifier and Type | Class and Description |
---|---|
class |
Request |
Modifier and Type | Class and Description |
---|---|
class |
EmittingCallbackFn<IN,OUT>
"Do It All" base class
Subclasses must override callback(), and may want to override others
|
static class |
EmittingCallbackFn.NOP<IN> |