Tabnine Logo
RegionQueue.size
Code IndexAdd Tabnine to your IDE (free)

How to use
size
method
in
com.gemstone.gemfire.internal.cache.RegionQueue

Best Java code snippets using com.gemstone.gemfire.internal.cache.RegionQueue.size (Showing top 20 results out of 315)

origin: io.snappydata/gemfire-hydra-tests

public boolean done() {
 size = 0;
 for (RegionQueue q : queues) {
  size += q.size();
 }
 if (size == regionSize) {
  return true;
 }
 return false;
}
origin: io.snappydata/gemfire-hydra-tests

public boolean done() {
 size = 0;
 for (RegionQueue q : regionQueue) {
  size += q.size();
 }
 if (size == regionSize) {
  return true;
 }
 return false;
}
origin: io.snappydata/gemfire-hydra-tests

 public String description() {
  int size = 0;
  for (RegionQueue q : queues) {
   size += q.size();
  }
  return "Expected queue size to be : " + 0 + " but actual entries: "
    + size;
 }
};
origin: io.snappydata/gemfire-hydra-tests

 public String description() {
  return "Expected queue entries: " + expectedQueueSize
    + " but actual entries: " + regionQueue.size();
 }
};
origin: io.snappydata/gemfire-core

public int getQueueSize()
{
 synchronized (this.controlLock) {
  GatewayEventProcessor ev = this._eventProcessor;
  if (ev == null) {
   return 0;
  }
  return ev._eventQueue.size();
 }
}
origin: io.snappydata/gemfire-hydra-tests

public boolean done() {
 int size = 0;
 for (RegionQueue q : queues) {
  size += q.size();
 }
 if (size == 0) {
  return true;
 }
 return false;
}
origin: io.snappydata/gemfire-hydra-tests

public boolean done() {
 if (regionQueue.size() == expectedQueueSize) {
  return true;
 }
 return false;
}
origin: io.snappydata/gemfire-hydra-tests

public boolean done() {
 if (regionQueue.size() == regionSize) {
  return true;
 }
 return false;
}
origin: io.snappydata/gemfire-hydra-tests

 public String description() {
  return "Expected queue entries: " + regionSize
    + " but actual entries: " + regionQueue.size();
 }
};
origin: io.snappydata/gemfire-core

protected int eventQueueSize() {
 return this._eventQueue.size();
}
origin: org.apache.geode/gemfire-core

@Override
public int size() {
 //is that fine??
 return this.processors[0].getQueue().size();
}

origin: io.snappydata/gemfire-hydra-tests

public boolean done() {
 Set<RegionQueue> queues = ((SerialGatewaySenderImpl)sender)
   .getQueues();
 int size = 0;
 for (RegionQueue q : queues) {
  size += q.size();
 }
 if (size == 0) {
  return true;
 }
 return false;
}
origin: io.snappydata/gemfire-core

@Override
public int size() {
 //is that fine??
 return this.processors[0].getQueue().size();
}

origin: io.snappydata/gemfire-hydra-tests

 public String description() {
  Set<RegionQueue> queues = ((SerialGatewaySenderImpl)sender)
    .getQueues();
  int size = 0;
  for (RegionQueue q : queues) {
   size += q.size();
  }
  return "Expected queue size to be : " + 0 + " but actual entries: "
    + size;
 }
};
origin: org.apache.geode/gemfire-core

@Override
public int size() {
 AbstractGatewaySenderEventProcessor eventProcessor = 
  ((AbstractGatewaySender) sender).getEventProcessor();
   
 int size = 0;
 if (eventProcessor instanceof ConcurrentSerialGatewaySenderEventProcessor) {
  Set<RegionQueue> queues = 
   ((ConcurrentSerialGatewaySenderEventProcessor) eventProcessor).getQueues();
  Iterator<RegionQueue> itr = queues.iterator();
  while (itr.hasNext()) {
   size = size + itr.next().size();
  }
 } else {
  size = eventProcessor.getQueue().size();
 }
 return size;
}

origin: io.snappydata/gemfire-core

protected int eventQueueSize() {
 // This should be local size instead of PR size. Fix for #48627
 if (this.queue instanceof ParallelGatewaySenderQueue) {
  return ((ParallelGatewaySenderQueue) queue).localSize();
 }
 if (this.queue instanceof ConcurrentParallelGatewaySenderQueue) {
  return ((ConcurrentParallelGatewaySenderQueue) queue).localSize();
 } 
 return this.queue.size();
}
origin: io.snappydata/gemfire-core

@Override
public int size() {
 AbstractGatewaySenderEventProcessor ep = ((AbstractGatewaySender) sender).getEventProcessor();
 if (ep == null) return 0;
 RegionQueue queue = ep.getQueue();
 return queue.size();
}
origin: org.apache.geode/gemfire-core

protected int eventQueueSize() {
 // This should be local size instead of PR size. Fix for #48627
 if (this.queue instanceof ParallelGatewaySenderQueue) {
  return ((ParallelGatewaySenderQueue) queue).localSize();
 }
 if (this.queue instanceof ConcurrentParallelGatewaySenderQueue) {
  return ((ConcurrentParallelGatewaySenderQueue) queue).localSize();
 } 
 return this.queue.size();
}

origin: io.snappydata/gemfire-hydra-tests

public static void verifyRegionQueueNotEmptyForConcurrentSender(String senderId) {
 Set<GatewaySender> senders = cache.getGatewaySenders();
 GatewaySender sender = null;
 for (GatewaySender s : senders) {
  if (s.getId().equals(senderId)) {
   sender = s;
   break;
  }
 }
 if (sender instanceof SerialGatewaySenderImpl) {
  Set<RegionQueue> queues = ((SerialGatewaySenderImpl)sender).getQueuesForConcurrentSerialGatewaySender();
  for(RegionQueue q:queues) {
   assertTrue(q.size() > 0);  
  }
 }
}

origin: io.snappydata/gemfire-core

public void closeProcessor() {
 if (getLogger().fineEnabled()) {
  getLogger().fine("Closing dispatcher");
 }
 try {
  if (this.sender.isPrimary() && this.queue.size() > 0) {
   getLogger()
   .warning(
     LocalizedStrings.GatewayImpl_DESTROYING_GATEWAYEVENTDISPATCHER_WITH_ACTIVELY_QUEUED_DATA);
  }
 } catch (RegionDestroyedException ignore) {
 } catch (CancelException ignore) {
 } catch (CacheException ignore) {
  // just checking in case we should log a warning
 } finally {
  this.queue.close();
  if (getLogger().fineEnabled()) {
   getLogger().fine("Closed dispatcher");
  }
 }
}
com.gemstone.gemfire.internal.cacheRegionQueuesize

Javadoc

Returns the size of the queue

Popular methods of RegionQueue

  • getRegion
    Returns the underlying region that backs this queue.
  • addCacheListener
    Add a CacheListener to the queue
  • put
    Puts an object onto the tail of the queue
  • close
  • peek
    Peeks either a batchSize number of elements from the queue or until timeToWait milliseconds have ela
  • remove
  • removeCacheListener
    Remove the CacheListener from the queue
  • take
    Takes up to batchSize number of objects from the head of the queue. As soon as it gets a null respon
  • estimateMemoryFootprint
    Estimate constant memory usage of the queue excluding the queue entries.
  • release

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Option (scala)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now