ClientCall which forwards all of its methods to another ClientCall which
may have a different sendMessage() message type.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | cancel(String
if not message, Throwable null, will appear as the description of the CANCELLED statusif not cause)null, will appear as the cause of the CANCELLED statusImplements abstract io. ClientCall.
|
| protected abstract ClientCall | |
| public Attributes | getAttributes()
Overrides io. |
| public void | halfClose()
Implements abstract io. |
| public boolean | isReady()
Overrides io. true, indicates that the call is capable of sending additional messages
without requiring excessive buffering internally.
|
| public void | request(int
the requested number of messages to be delivered to the listener. Must be
non-negative. numMessages)Implements abstract io. Listener#onMessage(Object).
|
| public void | setMessageCompression(boolean enabled)
Overrides io. |
| public String |
| PartialForwardingClientCall | back to summary |
|---|---|
| pack-priv PartialForwardingClientCall() | |
| cancel | back to summary |
|---|---|
| public void cancel(String message, Throwable cause) Implements abstract io. Doc from io. Prevent any further processing for this No other methods on this class can be called after this method has been called. It is recommended that at least one of the arguments to be non- | |
| delegate | back to summary |
|---|---|
| protected abstract ClientCall Returns the delegated | |
| getAttributes | back to summary |
|---|---|
| public Attributes getAttributes() Overrides io. Doc from io. Returns additional properties of the call. May only be called after
| |
| halfClose | back to summary |
|---|---|
| public void halfClose() Implements abstract io. Doc from io. Close the call for request message sending. Incoming response messages are unaffected. This should be called when no more messages will be sent from the client.
| |
| isReady | back to summary |
|---|---|
| public boolean isReady() Overrides io. Doc from io. If If If the type of the call is either This abstract class's implementation always returns
| |
| request | back to summary |
|---|---|
| public void request(int numMessages) Implements abstract io. Doc from io. Requests up to the given number of messages from the call to be delivered to
Message delivery is guaranteed to be sequential in the order received. In addition, the listener methods will not be accessed concurrently. While it is not guaranteed that the same thread will always be used, it is guaranteed that only a single thread will access the listener at a time. If it is desired to bypass inbound flow control, a very large number of messages can be
specified (e.g. If called multiple times, the number of messages able to delivered will be the sum of the calls. This method is safe to call from multiple threads without external synchronization.
| |
| setMessageCompression | back to summary |
|---|---|
| public void setMessageCompression(boolean enabled) Overrides io. Doc from io. Enables per-message compression, if an encoding type has been negotiated. If no message encoding has been negotiated, this is a no-op. By default per-message compression is enabled, but may not have any effect if compression is not enabled on the call.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |