@Module public abstract class AbstractSelectManager extends java.lang.Object
Constructor and Description |
---|
AbstractSelectManager() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closing the manager.
|
void |
closeKeepalive(TcpSocketLink tcpSocketLink) |
int |
getFreeKeepalive()
Returns the number of available keepalives.
|
int |
getSelectCount()
Returns the select count.
|
int |
getSelectMax()
Gets the max.
|
abstract boolean |
keepalive(TcpSocketLink conn)
Adds a keepalive connection.
|
void |
onPortClose(TcpPort port) |
void |
setSelectMax(int max)
Sets the max.
|
void |
setSelectTimeout(long period)
Sets the timeout.
|
abstract boolean |
start()
Starts the manager.
|
boolean |
stop()
Stops the manager.
|
public void setSelectTimeout(long period)
public void setSelectMax(int max)
public int getSelectMax()
public abstract boolean start()
public abstract boolean keepalive(TcpSocketLink conn)
conn
- the connection to register as keepalivepublic void closeKeepalive(TcpSocketLink tcpSocketLink)
public int getSelectCount()
public int getFreeKeepalive()
public void onPortClose(TcpPort port)
public boolean stop()
public void close()