Package com.zeroc.Ice

Interface BatchRequestInterceptor

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface BatchRequestInterceptor
Base interface for listening to batch request queues.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    enqueue(BatchRequest request, int queueBatchRequestCount, int queueBatchRequestSize)
    Called by the Ice runtime when a batch request is about to be added to the batch request queue of a proxy or connection.
  • Method Details

    • enqueue

      void enqueue(BatchRequest request, int queueBatchRequestCount, int queueBatchRequestSize)
      Called by the Ice runtime when a batch request is about to be added to the batch request queue of a proxy or connection.

      The implementation of this method must call enqueue() on the request to confirm its addition to the queue; if it isn't called then the request isn't added to the queue. The implementation can throw an Ice local exception to notify the caller of a failure.

      Parameters:
      request - the request to be added
      queueBatchRequestCount - the number of requests in the batch
      queueBatchRequestSize - the number of bytes in the batch