public class HandlerServer
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
HandlerServer(java.lang.String bindAddress,
int bindPort,
java.lang.Class handler)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Run
|
void |
start()
Start
|
void |
stop()
Stop
|
public HandlerServer(java.lang.String bindAddress, int bindPort, java.lang.Class handler) throws java.io.IOException
bindAddress
- The bind addressbindPort
- The bind porthandler
- The handlerjava.io.IOException
- Thrown if a server socket can not be createdpublic void start() throws java.lang.Throwable
java.lang.Throwable
- Thrown if an error occurspublic void stop() throws java.lang.Throwable
java.lang.Throwable
- Thrown if an error occurspublic void run()
run
in interface java.lang.Runnable
Copyright © 2014 IronJacamar (http://www.ironjacamar.org)