public class DirectCommunicationChannelAsync extends DirectCommunicationChannel
DirectCommunicationChannel
.
Uses direct calling of the receiveMessage method using asynchronous Executors
.
The number of threads in the executos pool correspond to the number of processor cores
Runtime.getRuntime().availableProcessors()
.DirectCommunicationChannel.DefaultReceiverTable, DirectCommunicationChannel.ReceiverTable
BROADCAST_ADDRESS
Constructor and Description |
---|
DirectCommunicationChannelAsync(CommunicationReceiver communicator)
Deprecated.
|
DirectCommunicationChannelAsync(CommunicationReceiver communicator,
DirectCommunicationChannel.ReceiverTable channelReceiverTable)
Deprecated.
|
DirectCommunicationChannelAsync(CommunicationReceiver communicator,
DirectCommunicationChannel.ReceiverTable channelReceiverTable,
ExecutorService executorService) |
Modifier and Type | Method and Description |
---|---|
protected void |
callDirectReceive(CommunicationReceiver receiver,
Message message)
Asynchronous direct call using
Executors . |
sendMessage
getCommunicationReceiver, receiveMessage
@Deprecated public DirectCommunicationChannelAsync(CommunicationReceiver communicator) throws CommunicationChannelException
communicator
- CommunicationChannelException
@Deprecated public DirectCommunicationChannelAsync(CommunicationReceiver communicator, DirectCommunicationChannel.ReceiverTable channelReceiverTable) throws CommunicationChannelException
CommunicationChannelException
public DirectCommunicationChannelAsync(CommunicationReceiver communicator, DirectCommunicationChannel.ReceiverTable channelReceiverTable, ExecutorService executorService) throws CommunicationChannelException
CommunicationChannelException
protected void callDirectReceive(CommunicationReceiver receiver, Message message)
Executors
.callDirectReceive
in class DirectCommunicationChannel
receiver
- message
- Copyright © 2017 Agent Technology Center (ATG). All rights reserved.