oemware.core.net
Class SharedUdpMessageHandler
java.lang.Object
oemware.core.net.SharedUdpMessageHandler
- All Implemented Interfaces:
- DatagramMessageHandler
public final class SharedUdpMessageHandler
- extends java.lang.Object
- implements DatagramMessageHandler
The generic shared datagram message handler. This takes the message, looks
at the id and then dispatches to the correct handler.
This is not to be used for long running actions or actions that require
high throughput.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SharedUdpMessageHandler
public SharedUdpMessageHandler()
execute
public boolean execute(DatagramMessage pDatagramMessage)
- Called to execute the handler.
- Specified by:
execute in interface DatagramMessageHandler
- Parameters:
pDatagramMessage - The message.
- Returns:
- True if the buffer should be written.
getHandlers
public java.util.Map<java.lang.Short,DatagramMessageHandler> getHandlers()
setHandlers
public void setHandlers(java.util.Map<NetMessageId,DatagramMessageHandler> pHandlers)
Copyright © 2009 Deft Labs - Released under LGPL, Version 3.0