|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

public interface IServerContext
Represents the handler`s server context. The context object will be set by using dependency injection.
To do this the Resource annotation has to be used.
E.g.
class MyHandler implements IDataHandler {
@Resource
private IServerContext ctx;
public boolean onData(INonBlockingConnection connection) throws IOException, BufferUnderflowException {
...
int srvPort = ctx.getLocalePort();
...
return true;
}
}
| Method Summary | |
|---|---|
java.net.InetAddress |
getLocaleAddress()
get the local server address |
int |
getLocalePort()
get the local server port |
int |
getNumberOfOpenConnections()
get the number of the open server connections |
java.util.concurrent.Executor |
getWorkerpool()
return the worker pool |
| Method Detail |
|---|
int getLocalePort()
java.net.InetAddress getLocaleAddress()
int getNumberOfOpenConnections()
java.util.concurrent.Executor getWorkerpool()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||