|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.store.socket.clientrequest.ClientRequestExecutorFactory
public class ClientRequestExecutorFactory
A Factory for creating ClientRequestExecutor instances.
| Constructor Summary | |
|---|---|
ClientRequestExecutorFactory(int selectors,
int connectTimeoutMs,
int soTimeoutMs,
int socketBufferSize,
boolean socketKeepAlive,
ClientSocketStats stats)
|
|
| Method Summary | |
|---|---|
void |
close()
|
ClientRequestExecutor |
create(SocketDestination dest)
Create a ClientRequestExecutor for the given SocketDestination. |
void |
destroy(SocketDestination dest,
ClientRequestExecutor clientRequestExecutor)
Close the ClientRequestExecutor. |
int |
getNumberCreated()
|
int |
getNumberDestroyed()
|
int |
getTimeout()
|
void |
setLastClosedTimestamp(SocketDestination socketDestination)
Assigns the last closed timestamp based on the current time in nanoseconds. |
boolean |
validate(SocketDestination dest,
ClientRequestExecutor clientRequestExecutor)
Check that the given resource is valid. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientRequestExecutorFactory(int selectors,
int connectTimeoutMs,
int soTimeoutMs,
int socketBufferSize,
boolean socketKeepAlive,
ClientSocketStats stats)
| Method Detail |
|---|
public void destroy(SocketDestination dest,
ClientRequestExecutor clientRequestExecutor)
throws java.lang.Exception
destroy in interface ResourceFactory<SocketDestination,ClientRequestExecutor>dest - The key of the resourceclientRequestExecutor - The resource
java.lang.Exception
public ClientRequestExecutor create(SocketDestination dest)
throws java.lang.Exception
SocketDestination.
create in interface ResourceFactory<SocketDestination,ClientRequestExecutor>dest - SocketDestination
java.lang.Exception
public boolean validate(SocketDestination dest,
ClientRequestExecutor clientRequestExecutor)
ResourceFactory
validate in interface ResourceFactory<SocketDestination,ClientRequestExecutor>dest - The key of the resourceclientRequestExecutor - The resource
public int getTimeout()
public int getNumberCreated()
public int getNumberDestroyed()
public void close()
close in interface ResourceFactory<SocketDestination,ClientRequestExecutor>public void setLastClosedTimestamp(SocketDestination socketDestination)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||