public interface ClientSocketFactoryApi
Modifier and Type | Method and Description |
---|---|
void |
busy(long time)
Called when the server responds with "busy", e.g.
|
boolean |
canOpenWarm()
Returns true if the server can open a connection.
|
boolean |
canOpenWarmOrRecycle()
Returns true if the server can open a connection.
|
void |
clearRecycle()
Clears the recycled connections, e.g.
|
void |
close()
Close the client
|
void |
disable()
Disable the client
|
void |
enable()
Enable the client
|
void |
enableSessionOnly()
Session only
|
void |
failConnect(long time)
Called when the socket read/write fails.
|
void |
failSocket(long time)
Called when the socket read/write fails.
|
java.lang.String |
getAddress()
Returns the hostname of the target server.
|
java.lang.String |
getDebugId()
Returns the debug id.
|
java.lang.String |
getId()
Returns the user-readable id of the target server.
|
int |
getPort()
Gets the port of the target server.
|
java.lang.String |
getState()
Returns the lifecycle state.
|
boolean |
isActive()
Returns true if the server is active.
|
boolean |
isDead()
Returns true if the server is dead.
|
boolean |
isEnabled()
Return true if active.
|
void |
notifyHeartbeatStart()
Notify that a start has occurred.
|
void |
notifyHeartbeatStop()
Notify that a stop has occurred.
|
ClientSocket |
open()
Open a stream to the target server for the load balancer.
|
ClientSocket |
openIfLive()
Open a stream to the target server object persistence.
|
ClientSocket |
openSticky()
Open a stream to the target server for a session.
|
ClientSocket |
openWarm()
Open a stream to the target server.
|
void |
start()
Enable the client.
|
void |
stop()
Disable the client.
|
void |
success()
Called when the server has a successful response
|
void |
toBusy() |
void |
toFail() |
void |
wake()
We now know that the server is live, e.g.
|
java.lang.String getId()
java.lang.String getDebugId()
java.lang.String getAddress()
int getPort()
boolean isActive()
boolean isDead()
void enable()
void disable()
java.lang.String getState()
boolean canOpenWarmOrRecycle()
boolean canOpenWarm()
boolean isEnabled()
void toBusy()
void toFail()
void failSocket(long time)
void failConnect(long time)
void busy(long time)
void success()
void start()
void stop()
void enableSessionOnly()
ClientSocket openWarm()
ClientSocket openIfLive()
ClientSocket openSticky()
ClientSocket open()
void wake()
void notifyHeartbeatStart()
void notifyHeartbeatStop()
void clearRecycle()
void close()