Package xyz.cofe.trambda.tcp
Class TcpQuery<ENV>
- java.lang.Object
-
- xyz.cofe.trambda.AsmQuery<ENV>
-
- xyz.cofe.trambda.tcp.TcpQuery<ENV>
-
- All Implemented Interfaces:
AutoCloseable,Query<ENV>
public class TcpQuery<ENV> extends AsmQuery<ENV> implements AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTcpQuery.Builder<ENV>
-
Field Summary
Fields Modifier and Type Field Description protected TcpClientclientprotected Map<Fn<?,?>,CompileResult>fnKeys-
Fields inherited from class xyz.cofe.trambda.AsmQuery
fn2mdef, methods, serializedLambdas
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <RES> REScall(Fn<ENV,RES> fn, SerializedLambda sl, MethodDef mdef)protected <RES> REScall(CompileResult key, SerializedLambda sl)voidclose()static <ENV> TcpQuery.Builder<ENV>create(Class<ENV> c)TcpClientgetClient()
-
-
-
Field Detail
-
client
protected final TcpClient client
-
fnKeys
protected final Map<Fn<?,?>,CompileResult> fnKeys
-
-
Constructor Detail
-
TcpQuery
public TcpQuery(TcpClient client)
-
-
Method Detail
-
getClient
public TcpClient getClient()
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
create
public static <ENV> TcpQuery.Builder<ENV> create(Class<ENV> c)
-
call
protected <RES> RES call(Fn<ENV,RES> fn, SerializedLambda sl, MethodDef mdef)
-
call
protected <RES> RES call(CompileResult key, SerializedLambda sl)
-
-