LimeWire Consolidated API

com.limegroup.gnutella
Class MessageDispatcher

java.lang.Object
  extended by com.limegroup.gnutella.MessageDispatcher

public class MessageDispatcher
extends Object

Dispatches messages to the MessageRouter.


Constructor Summary
MessageDispatcher(MessageRouter messageRouter, Executor dispatch)
           
 
Method Summary
 void dispatch(Runnable r)
          Dispatches a runnable, to allow arbitrary runnables to be processed on the message thread.
 void dispatchMulticast(Message m, InetSocketAddress addr)
          Dispatches a Multicast message.
 void dispatchTCP(Message m, RoutedConnection conn)
          Dispatches a TCP message.
 void dispatchUDP(Message m, InetSocketAddress addr)
          Dispatches a UDP message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageDispatcher

@Inject
public MessageDispatcher(MessageRouter messageRouter,
                                Executor dispatch)
Method Detail

dispatch

public void dispatch(Runnable r)
Dispatches a runnable, to allow arbitrary runnables to be processed on the message thread.


dispatchUDP

public void dispatchUDP(Message m,
                        InetSocketAddress addr)
Dispatches a UDP message.


dispatchMulticast

public void dispatchMulticast(Message m,
                              InetSocketAddress addr)
Dispatches a Multicast message.


dispatchTCP

public void dispatchTCP(Message m,
                        RoutedConnection conn)
Dispatches a TCP message.


LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.