public interface Observer<T>
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Mark the successful end.
|
default void |
complete(T message)
Shortcut for:
next(message);
complete();
|
void |
completeExceptionally(Throwable t)
Complete with an exception.
|
default boolean |
isCancelled()
Returns whether this call has been cancelled by the remote peer
|
void |
next(T message)
Emit the next message.
|
default void |
setCancelHandler(Runnable cancelHandler)
Set a
Runnable that will be called when the call is cancelled. |
void next(T message)
void completeExceptionally(Throwable t)
void complete()
default void complete(T message)
next(message); complete();
default boolean isCancelled()
Copyright © 2020 Space Applications Services. All rights reserved.