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

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

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

origin: org.apache.geode/gemfire-core

@Override
public void addCacheListener(CacheListener listener) {
  this.processors[0].getQueue().addCacheListener(listener);    
}
origin: io.snappydata/gemfire-core

@Override
public void addCacheListener(CacheListener listener) {
  this.processors[0].getQueue().addCacheListener(listener);    
}
origin: io.snappydata/gemfire-hydra-tests

private void addCacheListenerOnGateway(String gatewayHubId) {
 GatewayHub hub = cache.getGatewayHub(gatewayHubId);
 List<Gateway> gateways = hub.getGateways();
 gatewayListeners = new ArrayList<QueueListener>();
 for (Gateway gateway : gateways) {
  QueueListener listener = new QueueListener();
  ((GatewayImpl) gateway).getRegionQueueTestOnly().addCacheListener(listener);
  gatewayListeners.add(listener);
 }
}

origin: io.snappydata/gemfire-hydra-tests

private void addSecondCacheQueueListener(String senderId, boolean isParallel) {
 Set<GatewaySender> senders = cache.getGatewaySenders();
 GatewaySender sender = null;
 for (GatewaySender s : senders) {
  if (s.getId().equals(senderId)) {
   sender = s;
   break;
  }
 }
 listener2 = new QueueListener();
 if (!isParallel) {
  Set<RegionQueue> queues = ((SerialGatewaySenderImpl)sender).getQueues();
  for(RegionQueue q: queues) {
   q.addCacheListener(listener2);
  }
 }
 else {
   RegionQueue parallelQueue = (RegionQueue)((ParallelGatewaySenderImpl)sender)
  .getQueues().toArray(new RegionQueue[1])[0];
  parallelQueue.addCacheListener(listener2);
 }
}

origin: io.snappydata/gemfire-hydra-tests

private void addCacheQueueListener(String senderId, boolean isParallel) {
 Set<GatewaySender> senders = cache.getGatewaySenders();
 GatewaySender sender = null;
 for(GatewaySender s : senders){
  if(s.getId().equals(senderId)){
   sender = s;
   break;
  }
 }
 listener1 = new QueueListener();
 if (!isParallel) {
  Set<RegionQueue> queues = ((SerialGatewaySenderImpl)sender).getQueues();
  for(RegionQueue q: queues) {
   q.addCacheListener(listener1);
  }
 }
 else {
  RegionQueue parallelQueue = (RegionQueue)((ParallelGatewaySenderImpl)sender)
  .getQueues().toArray(new RegionQueue[1])[0];
  parallelQueue.addCacheListener(listener1);
 }
}
origin: io.snappydata/gemfire-hydra-tests

  .getQueues();
for (RegionQueue rq : sqSet) {
 rq.addCacheListener((CacheListener) queueListenerInstance);
com.gemstone.gemfire.internal.cacheRegionQueueaddCacheListener

Javadoc

Add a CacheListener to the queue

Popular methods of RegionQueue

  • size
    Returns the size of the queue
  • getRegion
    Returns the underlying region that backs this 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
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top Vim plugins
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