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<xyz.cofe.fn.Fn1<?,?>,CompileResult>fnKeys-
Fields inherited from class xyz.cofe.trambda.AsmQuery
lambdaDumpInst, serLambda
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <RES> REScall(xyz.cofe.fn.Fn1<ENV,RES> fn, SerializedLambda sl, LambdaDump mdef)protected <RES> REScall(CompileResult key, SerializedLambda sl)voidclose()static <ENV> TcpQuery.Builder<ENV>create(Class<ENV> c)TcpClientgetClient()<T> Tsubscribe(Class<T> cls)<T> TcpQuery<ENV>subscribe(Class<T> cls, Consumer<T> publishers)-
Methods inherited from class xyz.cofe.trambda.AsmQuery
apply, lambdaDump
-
-
-
-
Field Detail
-
client
protected final TcpClient client
-
fnKeys
protected final Map<xyz.cofe.fn.Fn1<?,?>,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(xyz.cofe.fn.Fn1<ENV,RES> fn, SerializedLambda sl, LambdaDump mdef)
-
call
protected <RES> RES call(CompileResult key, SerializedLambda sl)
-
subscribe
public <T> T subscribe(Class<T> cls)
-
-