|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAcceptor
Acceptor specification
This class is experimental and is subject to change
Field Summary | |
---|---|
static java.lang.String |
ACCEPTOR_CLASSNAME_KEY
|
static java.lang.String |
SO_RCVBUF
|
static java.lang.String |
SO_REUSEADDR
|
Method Summary | |
---|---|
java.net.InetSocketAddress |
getLocalAddress()
returns the local socket address |
int |
getNumberOfOpenConnections()
return the number of open connections |
java.lang.Object |
getOption(java.lang.String name)
returns the value of a option |
java.util.Map<java.lang.String,java.lang.Class> |
getOptions()
Returns an unmodifiable map of the options supported by this endpont. |
void |
listen()
executes the acceptor by listening incoming connections. |
Methods inherited from interface java.io.Closeable |
---|
close |
Field Detail |
---|
static final java.lang.String ACCEPTOR_CLASSNAME_KEY
static final java.lang.String SO_RCVBUF
static final java.lang.String SO_REUSEADDR
Method Detail |
---|
java.lang.Object getOption(java.lang.String name) throws java.io.IOException
name
- the name of the option
java.io.IOException
- In an I/O error occursjava.util.Map<java.lang.String,java.lang.Class> getOptions()
void listen() throws java.io.IOException
java.io.IOException
- If some other I/O error occursint getNumberOfOpenConnections()
java.net.InetSocketAddress getLocalAddress()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |