|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.blur.thrift.AbstractCommand<CLIENT,T>
public abstract class AbstractCommand<CLIENT,T>
Constructor Summary | |
---|---|
AbstractCommand()
|
Method Summary | |
---|---|
abstract T |
call(CLIENT client)
Abstract method that will be executed with a CLIENT object. |
T |
call(CLIENT client,
Connection connection)
If this method is implemented then the call(CLIENT client) method is not called. |
AbstractCommand<CLIENT,T> |
clone()
|
boolean |
isDetachClient()
Reads if this command is to detach the client from the pool or not. |
void |
setDetachClient(boolean detachClient)
Sets the attribute of detach client. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractCommand()
Method Detail |
---|
public boolean isDetachClient()
BlurClientManager
.
public void setDetachClient(boolean detachClient)
detachClient
- the boolean value.public T call(CLIENT client, Connection connection) throws BlurException, TException
Connection
object that is not normally needed. Usually used in conjunction with the
detachClient attribute.
client
- the client.connection
- the connection object.
BlurException
TException
public abstract T call(CLIENT client) throws BlurException, TException
TException
is throw (that type of exception is assumed
to be a problem with the connection to the remote system).
client
- the client.
BlurException
TException
public AbstractCommand<CLIENT,T> clone()
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |