public static class PojoClientServer.Client extends Object
| Constructor and Description |
|---|
Client(String name)
Create client bundle.
|
Client(String name,
org.sfj.PojoClientServer.Encoder encoder,
org.sfj.PojoClientServer.Decoder decoder)
Create client bundle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeAll()
Close all managed connections associated with this client
|
PojoClientServer.SingleConnection |
createOutgoingClient(InetSocketAddress dest,
int connectTimeout)
Create a managed outgoing client.
|
Throwable |
getLastIgnoredThrowable()
Get the last ignored exception
|
String |
getName()
Get the name.
|
public Client(String name)
name - Namepublic Client(String name, org.sfj.PojoClientServer.Encoder encoder, org.sfj.PojoClientServer.Decoder decoder)
name - Name.encoder - Encoder. Will use serialization if null.decoder - Decoder. Will use serialization if null.public String getName()
public PojoClientServer.SingleConnection createOutgoingClient(InetSocketAddress dest, int connectTimeout) throws IOException
dest - Destination.connectTimeout - timout for connection in millisIOException - one connection failurepublic void closeAll()
public Throwable getLastIgnoredThrowable()
Copyright © 2020. All rights reserved.