Class MultiThreadSyncChannel

  • All Implemented Interfaces:
    RequestChannel

    public class MultiThreadSyncChannel
    extends Object
    implements RequestChannel
    Class wrapping the RequestChannel in order to group the requests. It allows best performances with multiples senders.
    • Field Detail

      • syncRequests

        private Vector syncRequests
        Synchronized requests.
      • multiThreadSyncDelay

        private int multiThreadSyncDelay
        The maximum time the threads hang if 'multiThreadSync' is true. Either they wake up (wait time out) or they are notified (by the first woken up thread).
      • multiThreadSyncThreshold

        private int multiThreadSyncThreshold
        The maximum numbers of threads that hang if 'multiThreadSync' is true.
    • Constructor Detail

      • MultiThreadSyncChannel

        MultiThreadSyncChannel​(RequestChannel rc,
                               int delay,
                               int threshold)