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
CommunicationException
IOException
public HostInfo getHostInfo()
getHostInfo
in interface SocketServerInstance
public InetAddress getLocalAddress()
getLocalAddress
in interface SocketServerInstance
public String getServerVersion()
getServerVersion
in interface SocketServerInstance
public boolean isOpen()
isOpen
in interface SocketServerInstance
public void send(Message message, ResultsReceiver<Object> listener, Serializable messageKey) throws CommunicationException, InterruptedException
send
in interface SocketServerInstance
CommunicationException
InterruptedException
public void shutdown()
shutdown
in interface SocketServerInstance
public Cryptor getCryptor()
getCryptor
in interface SocketServerInstance
public void read(long timeout, TimeUnit unit, ResultsFuture<?> future) throws TimeoutException, InterruptedException
read
in interface SocketServerInstance
TimeoutException
InterruptedException
public <T> T getService(Class<T> iface)
getService
in interface SocketServerInstance
public long getSynchTimeout()
getSynchTimeout
in interface SocketServerInstance
Copyright © 2019. All rights reserved.