GigaSpaces XAP 9.7.2 API

org.openspaces.events.polling.receive
Class AbstractMemoryOnlySearchReceiveOperationHandler

java.lang.Object
  extended by org.openspaces.events.polling.receive.AbstractNonBlockingReceiveOperationHandler
      extended by org.openspaces.events.polling.receive.AbstractMemoryOnlySearchReceiveOperationHandler
All Implemented Interfaces:
ReceiveOperationHandler
Direct Known Subclasses:
AbstractFifoGroupingReceiveOperationHandler, MultiReadReceiveOperationHandler, SingleReadReceiveOperationHandler

public abstract class AbstractMemoryOnlySearchReceiveOperationHandler
extends AbstractNonBlockingReceiveOperationHandler

Support class to perform receive operations with or without memory only search..

If configured to use Memory Only Search, the read/take operation will use ReadModifiers.MEMORY_ONLY_SEARCH / TakeModifiers.MEMORY_ONLY_SEARCH accordingly.

Since:
9.5
Author:
eitany

Field Summary
protected  boolean useMemoryOnlySearch
           
 
Fields inherited from class org.openspaces.events.polling.receive.AbstractNonBlockingReceiveOperationHandler
nonBlocking, nonBlockingFactor
 
Constructor Summary
AbstractMemoryOnlySearchReceiveOperationHandler()
           
 
Method Summary
 boolean isUseMemoryOnlySearch()
          Returns whether the handler is configured to use memory only search or not.
 void setUseMemoryOnlySearch(boolean useMemoryOnlySearch)
          Allows to configure the take/read operation to be performed in a memory only search manner.
 
Methods inherited from class org.openspaces.events.polling.receive.AbstractNonBlockingReceiveOperationHandler
doReceiveBlocking, doReceiveNonBlocking, receive, setNonBlocking, setNonBlockingFactor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

useMemoryOnlySearch

protected boolean useMemoryOnlySearch
Constructor Detail

AbstractMemoryOnlySearchReceiveOperationHandler

public AbstractMemoryOnlySearchReceiveOperationHandler()
Method Detail

isUseMemoryOnlySearch

public boolean isUseMemoryOnlySearch()
Returns whether the handler is configured to use memory only search or not.


setUseMemoryOnlySearch

public void setUseMemoryOnlySearch(boolean useMemoryOnlySearch)
Allows to configure the take/read operation to be performed in a memory only search manner.

Parameters:
useMemoryOnlySearch - if true, will use ReadModifiers.MEMORY_ONLY_SEARCH / TakeModifiers.MEMORY_ONLY_SEARCH as part of the read/take modifiers.

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.