Class IndexUpdateCommand
- java.lang.Object
-
- org.infinispan.commands.remote.BaseRpcCommand
-
- org.infinispan.query.indexmanager.AbstractUpdateCommand
-
- org.infinispan.query.indexmanager.IndexUpdateCommand
-
- All Implemented Interfaces:
org.infinispan.commands.remote.CacheRpcCommand
,org.infinispan.commands.ReplicableCommand
,org.infinispan.query.impl.CustomQueryCommand
public class IndexUpdateCommand extends AbstractUpdateCommand
Custom RPC command containing an index update request for the Master IndexManager of a specific cache and index.- Author:
- Sanne Grinovero
-
-
Field Summary
Fields Modifier and Type Field Description static byte
COMMAND_ID
-
Fields inherited from class org.infinispan.query.indexmanager.AbstractUpdateCommand
indexName, queryInterceptor, searchFactory, serializedModel
-
-
Constructor Summary
Constructors Constructor Description IndexUpdateCommand(ByteString cacheName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getCommandId()
Used by marshallers to convert this command into an id for streaming.CompletableFuture<Object>
invokeAsync()
Invoke the command asynchronously.-
Methods inherited from class org.infinispan.query.indexmanager.AbstractUpdateCommand
canBlock, getIndexName, isReturnValueExpected, readFrom, setCacheManager, setIndexName, setSerializedWorkList, writeTo
-
Methods inherited from class org.infinispan.commands.remote.BaseRpcCommand
getCacheName, getOrigin, setOrigin, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
COMMAND_ID
public static final byte COMMAND_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IndexUpdateCommand
public IndexUpdateCommand(ByteString cacheName)
-
-
Method Detail
-
invokeAsync
public CompletableFuture<Object> invokeAsync()
Description copied from interface:org.infinispan.commands.ReplicableCommand
Invoke the command asynchronously.This method replaces
ReplicableCommand.perform(InvocationContext)
for remote execution. The default implementation andReplicableCommand.perform(InvocationContext)
will be removed in future versions.- Specified by:
invokeAsync
in interfaceorg.infinispan.commands.ReplicableCommand
- Specified by:
invokeAsync
in classAbstractUpdateCommand
-
getCommandId
public byte getCommandId()
Description copied from interface:org.infinispan.commands.ReplicableCommand
Used by marshallers to convert this command into an id for streaming.- Specified by:
getCommandId
in interfaceorg.infinispan.commands.ReplicableCommand
- Specified by:
getCommandId
in classAbstractUpdateCommand
- Returns:
- the method id of this command. This is compatible with pre-2.2.0 MethodCall ids.
-
-