Struct dendrite::axon_server::event::GetEventsRequest[][src]

pub struct GetEventsRequest {
    pub tracking_token: i64,
    pub number_of_permits: i64,
    pub client_id: String,
    pub component_name: String,
    pub processor: String,
    pub blacklist: Vec<PayloadDescription>,
    pub force_read_from_leader: bool,
}

Request message to open an Event Stream from the Event Store.

Fields

tracking_token: i64

The token to start streaming from

number_of_permits: i64

The number of messages the server may send before it needs to wait for more permits

client_id: String

The unique identifier of this client instance. Used for monitoring.

component_name: String

The component name of this client instance. Used for monitoring.

processor: String

The name of the processor requesting this stream. Used for monitoring.

blacklist: Vec<PayloadDescription>

An enumeration of payload types that need to be blacklisted. The Server will stop sending messages of these types in order to reduce I/O. Note that the Server may occasionally send a blacklisted message to prevent time-outs and stale tokens on clients.

force_read_from_leader: bool

Indicates whether to force reading events from the leader node of an Axon Server. Forcing reads from leader reduces the staleness of the data read, but also puts extra burden on the leader, reducing overall scalability.

This property has no effect on connections to AxonServer SE.

Trait Implementations

impl Clone for GetEventsRequest[src]

impl Debug for GetEventsRequest[src]

impl Default for GetEventsRequest[src]

impl Message for GetEventsRequest[src]

impl PartialEq<GetEventsRequest> for GetEventsRequest[src]

impl StructuralPartialEq for GetEventsRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> VecU8Message for T where
    T: Message
[src]

impl<T> WithSubscriber for T[src]