public interface Aggregator
Modifier and Type | Method and Description |
---|---|
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
expect(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> fn)
Adds the partial function to the receive set and keeping it in the receive set till removed.
|
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
expectOnce(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> fn)
Adds the partial function to the receive set, to be removed on first match.
|
boolean |
handleMessage(java.lang.Object msg)
Handles messages and matches against the expect list.
|
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
receive()
Receive function for handling the aggregations.
|
boolean |
unexpect(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> fn)
Removes the partial function from the receive set.
|
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> expectOnce(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> fn)
fn
- The receive function.scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> expect(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> fn)
fn
- The receive function.boolean unexpect(scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> fn)
fn
- The receive function.scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
boolean handleMessage(java.lang.Object msg)
msg
- The message to be handled.