Package com.logviewer.data2.net
Class OutcomeConnection
java.lang.Object
com.logviewer.data2.net.AbstractConnection
com.logviewer.data2.net.OutcomeConnection
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields inherited from class com.logviewer.data2.net.AbstractConnection
closed -
Method Summary
Modifier and TypeMethodDescription<R> CompletableFuture<R>execute(Function<RemoteContext, R> task) protected voidhandleMessage(Object msg) protected void<E,T extends RemoteTask<E>>
RemoteTaskController<T>startTask(T task, BiConsumer<E, Throwable> callback) Methods inherited from class com.logviewer.data2.net.AbstractConnection
close, init, isOpen, sendMessage
-
Method Details
-
handleMessage
- Specified by:
handleMessagein classAbstractConnection
-
execute
-
startTask
public <E,T extends RemoteTask<E>> RemoteTaskController<T> startTask(T task, BiConsumer<E, Throwable> callback) -
onDisconnect
protected void onDisconnect()- Overrides:
onDisconnectin classAbstractConnection
-