Query Request
Allows to create a post a query for messages of the given type.
None of the parameters set by the builder methods are required. Call run to retrieve the results of the query.
Usage example:
ImmutableList<Customer> customers = client.onBehalfOf(currentUser)
.select(Customer.class)
.byId(westCoastCustomerIds())
.withMask("name", "address", "email")
.where(eq(Customer.Column.type(), "permanent"),
eq(Customer.Column.discountPercent(), 10),
eq(Customer.Column.companySize(), Company.Size.SMALL))
.orderBy(Customer.Column.name(), ASCENDING)
.limit(20)
.run();
Content copied to clipboard
Filtering by field values (via where and where methods) can be composed using the Filters utility class.
Parameters
<S>
the type of the queried entity states
See also
Functions
Inherited functions
Link copied to clipboard
Creates a builder for customizing command request.
Link copied to clipboard
Assigns a handler for an error occurred on the server-side (such as validation error) in response to posting a request.
Link copied to clipboard
Assigns a handler for errors occurred when delivering messages from the server.
Link copied to clipboard
Creates a builder for customizing subscription for the passed entity state type.
Link copied to clipboard
Creates a builder for customizing subscription for the passed event type.
Link copied to clipboard
Configures the request to return results matching all the passed filters.