public class HproseTcpServer extends HproseService
event, globalMethodsafterFilter, afterFilterHandler, beforeFilter, beforeFilterHandler, invokeHandler| 构造器和说明 |
|---|
HproseTcpServer(String uri) |
HproseTcpServer(String host,
int port) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
fireAcceptEvent(SocketChannel channel) |
protected void |
fireCloseEvent(SocketChannel channel) |
protected Object[] |
fixArguments(Type[] argumentTypes,
Object[] arguments,
ServiceContext context) |
static TcpContext |
getCurrentContext() |
HproseMethods |
getGlobalMethods() |
String |
getHost() |
int |
getPort() |
int |
getReactorThreads() |
int |
getReadTimeout() |
ExecutorService |
getThreadPool()
get the thread pool.
|
int |
getWriteTimeout() |
boolean |
isStarted() |
boolean |
isThreadPoolEnabled()
Is thread pool enabled.
|
void |
setGlobalMethods(HproseMethods methods) |
void |
setHost(String value) |
void |
setPort(int value) |
void |
setReactorThreads(int reactorThreads) |
void |
setReadTimeout(int readTimeout) |
void |
setThreadPool(ExecutorService value)
set the thread pool.
|
void |
setThreadPoolEnabled(boolean value)
Set thread pool enabled.
|
void |
setWriteTimeout(int writeTimeout) |
void |
start() |
void |
stop() |
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addFilter, addMissingMethod, addMissingMethod, addMissingMethod, addMissingMethod, addMissingMethod, addMissingMethod, addMissingMethod, addMissingMethod, addMissingMethod, addMissingMethod, afterFilterHandler, beforeFilterHandler, broadcast, broadcast, doFunctionList, doInvoke, exist, fireErrorEvent, getErrorDelay, getEvent, getFilter, getHeartbeat, getMode, getPushEvent, getTimeout, handle, handle, idlist, invokeHandler, isDebugEnabled, multicast, multicast, publish, publish, publish, publish, publish, publish, push, push, push, remove, removeFilter, setDebugEnabled, setErrorDelay, setEvent, setFilter, setHeartbeat, setMode, setPushEvent, setTimeout, unicast, unicastaddAfterFilterHandler, addBeforeFilterHandler, addInvokeHandler, usepublic HproseTcpServer(String uri) throws URISyntaxException
public HproseTcpServer(String host, int port)
public String getHost()
public void setHost(String value)
public int getPort()
public void setPort(int value)
public int getReactorThreads()
public void setReactorThreads(int reactorThreads)
public boolean isStarted()
public void start()
throws IOException
IOExceptionpublic void stop()
public HproseMethods getGlobalMethods()
getGlobalMethods 在类中 HproseServicepublic void setGlobalMethods(HproseMethods methods)
setGlobalMethods 在类中 HproseServiceprotected Object[] fixArguments(Type[] argumentTypes, Object[] arguments, ServiceContext context)
fixArguments 在类中 HproseServicepublic static TcpContext getCurrentContext()
public boolean isThreadPoolEnabled()
public void setThreadPoolEnabled(boolean value)
value - is thread pool enabledpublic ExecutorService getThreadPool()
public void setThreadPool(ExecutorService value)
value - is the thread poolprotected void fireAcceptEvent(SocketChannel channel)
protected void fireCloseEvent(SocketChannel channel)
public int getReadTimeout()
public void setReadTimeout(int readTimeout)
public int getWriteTimeout()
public void setWriteTimeout(int writeTimeout)
Copyright © 2018. All rights reserved.