ServerCall which forwards all of it's methods to another ServerCall which
may have a different sendMessage() message type.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close(Status status, Metadata trailers)
Implements abstract io. |
| protected abstract ServerCall | |
| public Attributes | |
| public String | getAuthority()
Overrides io. |
| public SecurityLevel | getSecurityLevel()
Overrides io. Determining the level of security offered by the transport for RPCs on server-side. |
| public boolean | isCancelled()
Implements abstract io. true when the call is cancelled and the server is encouraged to abort
processing to save resources, since the client will not be processing any further methods.
|
| 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. numMessages)Implements abstract io. Listener#onMessage(Object).
|
| public void | sendHeaders(Metadata
metadata to send prior to any response body. headers)Implements abstract io. |
| public void | setCompression(String
the name of the compressor to use. compressor)Overrides io. |
| public void | setMessageCompression(boolean enabled)
Overrides io. |
| public String |
| PartialForwardingServerCall | back to summary |
|---|---|
| pack-priv PartialForwardingServerCall() | |
| close | back to summary |
|---|---|
| public void close(Status status, Metadata trailers) Implements abstract io. Doc from io. Close the call with the provided status. No further sending or receiving will occur. If If no errors or cancellations are known to have occurred, then a Since This method implies the caller completed processing the RPC, but it does not imply the RPC
is complete. The call implementation will need additional time to complete the RPC and during
this time the client is still able to cancel the request or a network error might cause the
RPC to fail. If you wish to know when the call is actually completed/closed, you have to use
| |
| delegate | back to summary |
|---|---|
| protected abstract ServerCall Returns the delegated | |
| getAttributes | back to summary |
|---|---|
| public Attributes getAttributes() Overrides io. Doc from io. Returns properties of a single call. Attributes originate from the transport and can be altered by
| |
| getAuthority | back to summary |
|---|---|
| public String getAuthority() Overrides io. Doc from io. Gets the authority this call is addressed to. | |
| getSecurityLevel | back to summary |
|---|---|
| public SecurityLevel getSecurityLevel() Overrides io. Doc from io. Returns the level of security guarantee in communications Determining the level of security offered by the transport for RPCs on server-side. This can be approximated by looking for the SSLSession, but that doesn't work for ALTS and maybe some future TLS approaches. May return a lower security level when it cannot be determined precisely.
| |
| isCancelled | back to summary |
|---|---|
| public boolean isCancelled() Implements abstract io. Doc from io. Returns This method may safely be called concurrently from multiple threads.
| |
| isReady | back to summary |
|---|---|
| public boolean isReady() Overrides io. Doc from io. If If 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
Servers use this mechanism to provide back-pressure to the client for flow-control. This method is safe to call from multiple threads without external synchronization.
| |
| sendHeaders | back to summary |
|---|---|
| public void sendHeaders(Metadata headers) Implements abstract io. Doc from io. Send response header metadata prior to sending a response message. This method may
only be called once and cannot be called after calls to Since | |
| setCompression | back to summary |
|---|---|
| public void setCompression(String compressor) Overrides io. Doc from io. Sets the compression algorithm for this call. This compression is utilized for sending. If
the server does not support the compression algorithm, the call will fail. This method may
only be called before It is safe to call this even if the client does not support the compression format chosen. The implementation will handle negotiation with the client and may fall back to no compression.
| |
| 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. | |