| Modifier and Type | Class and Description |
|---|---|
| public static class | RpcUtil.AlreadyCalledException
Exception thrown when a one-time callback is called more than once. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static <Type extends Message> Type | copyAsType(final Type typeDefaultInstance, final Message source)
Creates a new message of type "Type" which is a copy of "source". |
| public static <Type extends Message> RpcCallback | generalizeCallback(final RpcCallback<Type> originalCallback, final Class<Type> originalClass, final Type defaultInstance)
Take an |
| public static <ParameterType> RpcCallback | newOneTimeCallback(final RpcCallback<ParameterType> originalCallback)
Creates a callback which can only be called once. |
| public static <Type extends Message> RpcCallback | specializeCallback(final RpcCallback<Message> originalCallback)
Take an |
| RpcUtil | back to summary |
|---|---|
| private RpcUtil() | |
| copyAsType | back to summary |
|---|---|
| private static <Type extends Message> Type copyAsType(final Type typeDefaultInstance, final Message source) Creates a new message of type "Type" which is a copy of "source". "source" must have the same descriptor but may be a different class (e.g. DynamicMessage).
| |
| generalizeCallback | back to summary |
|---|---|
| public static <Type extends Message> RpcCallback Take an | |
| newOneTimeCallback | back to summary |
|---|---|
| public static <ParameterType> RpcCallback Creates a callback which can only be called once. This may be useful for security, when passing a callback to untrusted code: most callbacks do not expect to be called more than once, so doing so may expose bugs if it is not prevented. | |
| specializeCallback | back to summary |
|---|---|
| public static <Type extends Message> RpcCallback Take an
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| AlreadyCalledException | back to summary |
|---|---|
| public AlreadyCalledException() | |