public final class Port extends Object
A port is obtained from a worker environment when spawning a function. It can then be used to send messages that will be eventually processed by the target function. Messages are being put in a first-in, first-out queue.
| Constructor and Description |
|---|
Port(ExecutorService executor,
WorkerFunction function)
Port constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Port |
send(Object message)
Sends a message to the target worker function.
|
public Port(ExecutorService executor, WorkerFunction function)
executor - the executor to dispatch the asynchronous message handling jobs to.function - the target worker function.Copyright © 2014 Institut National des Sciences Appliquées de Lyon (INSA-Lyon). All Rights Reserved.