Class BufferedEventStream

    • Constructor Detail

      • BufferedEventStream

        public BufferedEventStream​(ClientIdentification clientId,
                                   long trackingToken,
                                   int bufferSize,
                                   int refillBatch,
                                   boolean forceReadFromLeader)
        Construct a BufferedEventStream, starting a position trackingToken with the given bufferSize.
        Parameters:
        clientId - The client identifier starting this stream.
        trackingToken - The position to start this BufferedEventStream at.
        bufferSize - The buffer size of this event stream.
        refillBatch - The number of Events to consume prior refilling the buffer.
        forceReadFromLeader - A boolean defining whether Events must be read from the leader.
    • Method Detail

      • excludePayloadType

        public void excludePayloadType​(String payloadType,
                                       String revision)
        Description copied from interface: EventStream
        Instructs AxonServer to not send messages with the given payloadType and revision. This method is in no way a guarantee that these message will no longer be sent at all. Some messages may already have been en-route, and AxonServer may decide to send messages every once in a while as a "beacon" to relay progress of the tracking token. It may choose, however, to omit the actual payload, in that case.
        Specified by:
        excludePayloadType in interface EventStream
        Parameters:
        payloadType - the type of payload to exclude from the stream
        revision - the revision of the payload to exclude from the stream