Esempio n. 1
0
 /**
  * Creates a PoolSearch from a PoolSearchBuilder
  *
  * @since v1.3.0
  */
 protected PoolSearch(PoolSearchBuilder builder) {
   registerListener(builder.listener);
   pool = builder.pool;
   netParams = builder.netParams;
   searchMode = builder.searchMode;
   poolSearchReferences.add(this);
 }
Esempio n. 2
0
 /**
  * Creates a PoolSearch thread from a listener, an existing QueryPool instance, and an existing
  * GlobalNetParams instance. Note: if the reference to this GNP changes, it WILL affect the way
  * this thread searches for Query's.
  *
  * @deprecated use PoolSearchBuilder. Deprecated since v1.3.0
  * @since v1.0.0
  */
 @Deprecated
 public PoolSearch(BaseSearchListener listener, QueryPool pool, GlobalNetParams netParams) {
   registerListener(listener);
   synchronized (this) {
     if (this.pool == null) {
       this.pool = pool;
     }
     if (this.netParams == null) {
       this.netParams = netParams;
     }
     searchMode = SearchMode.SEARCH_ALL;
   }
 }