예제 #1
0
 public InternalRoutingTable()
 {
     messageHubs              = new Bcl.Dictionary <ReceiverIdentifier, ILocalSendingSocket <IMessage> >();
     messageToActorMap        = new Bcl.Dictionary <MessageIdentifier, HashedLinkedList <ReceiverIdentifier> >();
     actorToSocketMap         = new Bcl.Dictionary <ReceiverIdentifier, ILocalSendingSocket <IMessage> >();
     socketToActorMessagesMap = new Bcl.Dictionary <ILocalSendingSocket <IMessage>, Bcl.IDictionary <ReceiverIdentifier, Bcl.HashSet <MessageIdentifier> > >();
 }
예제 #2
0
 public ExternalRoutingTable(ILogger logger)
 {
     this.logger         = logger;
     nodeMessageHubs     = new Bcl.Dictionary <ReceiverIdentifier, Bcl.HashSet <ReceiverIdentifier> >();
     nodeActors          = new Bcl.Dictionary <ReceiverIdentifier, Bcl.HashSet <ReceiverIdentifier> >();
     actorToMessageMap   = new Bcl.Dictionary <ReceiverIdentifier, Bcl.HashSet <MessageIdentifier> >();
     messageToNodeMap    = new Bcl.Dictionary <MessageIdentifier, HashedLinkedList <ReceiverIdentifier> >();
     nodeToConnectionMap = new Bcl.Dictionary <ReceiverIdentifier, PeerConnection>();
     uriToNodeMap        = new ConcurrentDictionary <string, Bcl.HashSet <ReceiverIdentifier> >();
 }