public class SocketServerInstanceImpl extends Object implements SocketServerInstance
Cryptor to be used for secure traffic.| Modifier and Type | Class and Description |
|---|---|
static class |
SocketServerInstanceImpl.RemoteInvocationHandler |
| Constructor and Description |
|---|
SocketServerInstanceImpl(HostInfo info,
long synchTimeout,
int soTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(ObjectChannelFactory channelFactory) |
Cryptor |
getCryptor() |
HostInfo |
getHostInfo() |
InetAddress |
getLocalAddress() |
String |
getServerVersion() |
<T> T |
getService(Class<T> iface) |
long |
getSynchTimeout() |
boolean |
isOpen() |
void |
read(long timeout,
TimeUnit unit,
ResultsFuture<?> future) |
void |
send(Message message,
ResultsReceiver<Object> listener,
Serializable messageKey) |
void |
shutdown() |
public SocketServerInstanceImpl(HostInfo info, long synchTimeout, int soTimeout)
public void connect(ObjectChannelFactory channelFactory) throws CommunicationException, IOException
CommunicationExceptionIOExceptionpublic HostInfo getHostInfo()
getHostInfo in interface SocketServerInstancepublic InetAddress getLocalAddress()
getLocalAddress in interface SocketServerInstancepublic String getServerVersion()
getServerVersion in interface SocketServerInstancepublic boolean isOpen()
isOpen in interface SocketServerInstancepublic void send(Message message, ResultsReceiver<Object> listener, Serializable messageKey) throws CommunicationException, InterruptedException
send in interface SocketServerInstanceCommunicationExceptionInterruptedExceptionpublic void shutdown()
shutdown in interface SocketServerInstancepublic Cryptor getCryptor()
getCryptor in interface SocketServerInstancepublic void read(long timeout,
TimeUnit unit,
ResultsFuture<?> future)
throws TimeoutException,
InterruptedException
read in interface SocketServerInstanceTimeoutExceptionInterruptedExceptionpublic <T> T getService(Class<T> iface)
getService in interface SocketServerInstancepublic long getSynchTimeout()
getSynchTimeout in interface SocketServerInstanceCopyright © 2019. All rights reserved.