net.sf.juoserver.api
Interface ClientHandler

All Superinterfaces:
Manageable, Runnable

public interface ClientHandler
extends Manageable, Runnable

Contract for a client handler.


Method Summary
 String getName()
          Retrieves the client handler's name.
 void sendToClient(Message... messages)
          Sends a list of messages to the client.
 
Methods inherited from interface net.sf.juoserver.api.Manageable
init, shutDown, startUp
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

getName

String getName()
Retrieves the client handler's name.

Returns:
the client handler's name

sendToClient

void sendToClient(Message... messages)
                  throws IOException
Sends a list of messages to the client.

Parameters:
messages - the messages to be sent
Throws:
IOException - in case of I/O errors


Copyright © 2010-2012. All Rights Reserved.