| Modifier and Type | Class and Description |
|---|---|
protected class |
Channel.ResultProcessor<T extends Response>
Internal class used to tie responses to requests based on request IDs.
|
protected class |
Channel.ResultProcessorResult<T extends Response>
A holder for the resulting
Response. |
| Modifier and Type | Class and Description |
|---|---|
class |
StandardResponse
Parent class for transport object representing messages received FROM cast
devices.
|
static class |
StandardResponse.AppAvailabilityResponse
Response to "AppAvailability" request.
|
static class |
StandardResponse.CloseResponse
Request to 'Close' connection.
|
static class |
StandardResponse.DeviceAddedResponse
Received when power is cycled on ChromeCast Audio devices in a group.
|
static class |
StandardResponse.DeviceRemovedResponse
Received when power is cycled on ChromeCast Audio devices in a group.
|
static class |
StandardResponse.DeviceUpdatedResponse
Received when volume is changed.
|
static class |
StandardResponse.ErrorResponse
An error response from the cast device.
|
static class |
StandardResponse.LaunchErrorResponse
Application cannot be launched for some
reason. |
static class |
StandardResponse.MediaStatusResponse
Response to "MediaStatus" request.
|
static class |
StandardResponse.MultizoneStatusResponse
Multi-Zone status for the case when there are multiple cast devices in
different zones (rooms).
|
static class |
StandardResponse.PingResponse
Request to send 'Pong' message in reply.
|
static class |
StandardResponse.PongResponse
Response in reply to 'Ping' message.
|
static class |
StandardResponse.ReceiverStatusResponse
Response to "ReceiverStatus" request.
|
| Modifier and Type | Field and Description |
|---|---|
protected T |
Channel.ResultProcessorResult.typedResult
The
Response as the expected type |
| Modifier and Type | Field and Description |
|---|---|
protected Map<Long,Channel.ResultProcessor<? extends Response>> |
Channel.requests
Processors of requests by their identifiers
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Response> |
Channel.send(Session session,
String namespace,
Request message,
String sourceId,
String destinationId,
Class<T> responseClass,
long responseTimeout)
Sends the specified
Request to the specified destination using
the specified parameters. |
<T extends Response> |
Channel.sendGenericRequest(Session session,
String namespace,
Request request,
Class<T> responseClass)
|
<T extends Response> |
Channel.sendGenericRequest(Session session,
String namespace,
Request request,
Class<T> responseClass,
long responseTimeout)
|
<T extends Response> |
Session.sendGenericRequest(String namespace,
Request request,
Class<T> responseClass)
|
<T extends Response> |
Channel.sendGenericRequest(String sourceId,
String destinationId,
String namespace,
Request request,
Class<T> responseClass)
|
<T extends Response> |
CastDevice.sendGenericRequest(String sourceId,
String destinationId,
String namespace,
Request request,
Class<T> responseClass)
Sends the specified
Request with the specified namespace using
the specified source and destination IDs and
Channel.DEFAULT_RESPONSE_TIMEOUT as the timeout value. |
<T extends Response> |
Channel.sendGenericRequest(String sourceId,
String destinationId,
String namespace,
Request request,
Class<T> responseClass,
long responseTimeout)
Sends the specified
Request with the specified namespace using
the specified source and destination IDs. |
<T extends Response> |
CastDevice.sendGenericRequest(String sourceId,
String destinationId,
String namespace,
Request request,
Class<T> responseClass,
long responseTimeout)
Sends the specified
Request with the specified namespace using
the specified source and destination IDs. |
| Modifier and Type | Method and Description |
|---|---|
protected Channel.ResultProcessor<? extends Response> |
Channel.acquireResultProcessor(long requestId)
Claims (retrieves and removes from
requests) the
Channel.ResultProcessorResult for the specified request ID if one exists. |
Copyright © 2022. All rights reserved.