org.openspaces.events.polling.receive
Class AbstractMemoryOnlySearchReceiveOperationHandler
java.lang.Object
org.openspaces.events.polling.receive.AbstractNonBlockingReceiveOperationHandler
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
useMemoryOnlySearch
protected boolean useMemoryOnlySearch
AbstractMemoryOnlySearchReceiveOperationHandler
public AbstractMemoryOnlySearchReceiveOperationHandler()
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.
Copyright © GigaSpaces.