R - type of message received from the serverW - type of message to be sent to the serverpublic abstract class SessionBase<R,W> extends Object implements Session
| Modifier and Type | Field and Description |
|---|---|
protected AtomicBoolean |
isWorking |
protected GrpcReadWriteStream<R,W> |
streamConnection |
| Constructor and Description |
|---|
SessionBase(GrpcReadWriteStream<R,W> streamConnection) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.slf4j.Logger |
getLogger() |
protected abstract void |
onStop() |
void |
send(W request) |
protected abstract void |
sendUpdateTokenRequest(String token) |
void |
shutdown() |
protected CompletableFuture<Status> |
start(GrpcReadStream.Observer<R> streamObserver) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstartAndInitializeprotected final GrpcReadWriteStream<R,W> streamConnection
protected final AtomicBoolean isWorking
public SessionBase(GrpcReadWriteStream<R,W> streamConnection)
protected abstract org.slf4j.Logger getLogger()
protected abstract void sendUpdateTokenRequest(String token)
protected abstract void onStop()
protected CompletableFuture<Status> start(GrpcReadStream.Observer<R> streamObserver)
public void send(W request)
Copyright © 2024. All rights reserved.