public class BinaryClientPoolFactory extends AbstractClientPoolFactory
| Constructor and Description |
|---|
BinaryClientPoolFactory() |
| Modifier and Type | Method and Description |
|---|---|
Object |
createClient(String protocol,
String hostName,
int port)
Make a connection to the receiver and return the client.
|
void |
terminateClient(Object client)
Terminates the connection between the client and the endpoint.
|
boolean |
validateClient(Object client)
Check the validity of the client whether it's in the position to make the
communication with endpoint.
|
destroyObject, makeObject, validateObjectpublic Object createClient(String protocol, String hostName, int port) throws DataEndpointException
AbstractClientPoolFactorycreateClient in class AbstractClientPoolFactoryprotocol - protocol that is used to connect to the endpointhostName - hostname of the endpointport - port of the endpoint that is listening toDataEndpointException - Exception to be thrown when communicating with DataEndpoint.public boolean validateClient(Object client)
AbstractClientPoolFactoryvalidateClient in class AbstractClientPoolFactoryclient - Client object which needs to be validated.public void terminateClient(Object client)
AbstractClientPoolFactoryterminateClient in class AbstractClientPoolFactoryclient - The client which needs to be terminated.Copyright © 2024 WSO2. All rights reserved.