Package org.infinispan.commands.topology
Class CacheShutdownCommand
- java.lang.Object
-
- org.infinispan.commands.topology.AbstractCacheControlCommand
-
- org.infinispan.commands.topology.CacheShutdownCommand
-
- All Implemented Interfaces:
GlobalRpcCommand,ReplicableCommand
public class CacheShutdownCommand extends AbstractCacheControlCommand
Tell members to shutdown cache.- Since:
- 11.0
- Author:
- Ryan Emerson
-
-
Field Summary
Fields Modifier and Type Field Description static byteCOMMAND_ID-
Fields inherited from class org.infinispan.commands.topology.AbstractCacheControlCommand
origin
-
-
Constructor Summary
Constructors Constructor Description CacheShutdownCommand()CacheShutdownCommand(String cacheName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<?>invokeAsync(GlobalComponentRegistry gcr)Invoke the command asynchronously.voidreadFrom(ObjectInput input)Reads this instance from the stream written byReplicableCommand.writeTo(ObjectOutput).StringtoString()voidwriteTo(ObjectOutput output)Writes this instance to theObjectOutput.-
Methods inherited from class org.infinispan.commands.topology.AbstractCacheControlCommand
getCommandId, isReturnValueExpected, setOrigin
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.commands.ReplicableCommand
canBlock, invoke, invokeAsync, isSuccessful
-
-
-
-
Field Detail
-
COMMAND_ID
public static final byte COMMAND_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CacheShutdownCommand
public CacheShutdownCommand()
-
CacheShutdownCommand
public CacheShutdownCommand(String cacheName)
-
-
Method Detail
-
invokeAsync
public CompletionStage<?> invokeAsync(GlobalComponentRegistry gcr) throws Throwable
Description copied from interface:GlobalRpcCommandInvoke the command asynchronously.- Throws:
Throwable
-
writeTo
public void writeTo(ObjectOutput output) throws IOException
Description copied from interface:ReplicableCommandWrites this instance to theObjectOutput.- Parameters:
output- the stream.- Throws:
IOException- if an error occurred during the I/O.
-
readFrom
public void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
Description copied from interface:ReplicableCommandReads this instance from the stream written byReplicableCommand.writeTo(ObjectOutput).- Parameters:
input- the stream to read.- Throws:
IOException- if an error occurred during the I/O.ClassNotFoundException- if it tries to load an undefined class.
-
-