| 构造器和说明 |
|---|
Context() |
| 限定符和类型 | 方法和说明 |
|---|---|
Context |
addProtocol(Protocol protocol) |
Set<String> |
getBlackList() |
int |
getCompactBuffSize() |
Processor<T> |
getProcessor() |
List<Protocol> |
getProtocolList() |
int |
getReadBuffSize() |
Selector |
getSelector() |
SessionListener |
getSessionListener() |
int |
getThreadNumber() |
int |
getWriteWarnLimit() |
boolean |
isUseCompactQueue() |
boolean |
isUseDirectBuffer() |
void |
setBlackList(Set<String> blackList) |
void |
setProcessor(Processor<T> processor) |
void |
setSelectionKey(SocketChannel socketChannel,
Integer selectionKey) |
Context<?> |
setSessionListener(SessionListener sessionListener) |
public SessionListener getSessionListener()
public Context<?> setSessionListener(SessionListener sessionListener)
public int getThreadNumber()
public int getReadBuffSize()
public boolean isUseCompactQueue()
public int getCompactBuffSize()
public boolean isUseDirectBuffer()
public int getWriteWarnLimit()
public Selector getSelector()
public void setSelectionKey(SocketChannel socketChannel, Integer selectionKey)
Copyright © 2019. All rights reserved.