Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SynchronizedList (0.12 sec)

  1. src/main/java/org/codelibs/fess/suggest/index/writer/SuggestWriterResult.java

    package org.codelibs.fess.suggest.index.writer;
    
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.List;
    
    public class SuggestWriterResult {
        protected List<Throwable> failures = Collections.synchronizedList(new ArrayList<>());
    
        public void addFailure(final Throwable t) {
            failures.add(t);
        }
    
        public boolean hasFailure() {
            return !failures.isEmpty();
        }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/ListenerCallQueue.java

      private static final LazyLogger logger = new LazyLogger(ListenerCallQueue.class);
    
      // TODO(chrisn): promote AppendOnlyCollection for use here.
      private final List<PerListenerQueue<L>> listeners =
          Collections.synchronizedList(new ArrayList<PerListenerQueue<L>>());
    
      /** Method reference-compatible listener event. */
      interface Event<L> {
        /** Call a method on the listener. */
        void call(L listener);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Dec 13 19:45:20 UTC 2023
    - 8.2K bytes
    - Viewed (0)
Back to top