public class ClientFactory
extends java.lang.Object
Constructor and Description |
---|
ClientFactory(java.lang.String hosts)
Creates a new ClientFactory
|
Modifier and Type | Method and Description |
---|---|
void |
activateObject(java.lang.Object obj)
Activates a client.
|
void |
destroyObject(java.lang.Object obj)
Destroy a Client object.
|
java.lang.Object |
makeObject()
Makes a new Client
|
void |
passivateObject(java.lang.Object obj)
Passivate a client when it is returned to the pool.
|
boolean |
validateObject(java.lang.Object obj)
Validates that a Client is in a useable state
|
public ClientFactory(java.lang.String hosts)
hosts
- the hosts string used to construct a Clientpublic java.lang.Object makeObject() throws java.lang.Exception
java.lang.Exception
- A serious problempublic void activateObject(java.lang.Object obj) throws java.lang.Exception
obj
- the client to activatejava.lang.Exception
- a serious problempublic void passivateObject(java.lang.Object obj) throws java.lang.Exception
obj
- the Client to passivatejava.lang.Exception
- a serious problempublic boolean validateObject(java.lang.Object obj)
obj
- the Client to validatepublic void destroyObject(java.lang.Object obj)
obj
- the Client to destroystSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.