public class RemoveExpiredCommand extends RemoveCommand
| Modifier and Type | Field and Description |
|---|---|
static int |
COMMAND_ID |
metadata, successful, value, valueMatchercommandInvocationIdkey, segment| Constructor and Description |
|---|
RemoveExpiredCommand() |
RemoveExpiredCommand(Object key,
Object value,
Long lifespan,
boolean maxIdle,
int segment,
long flagBitSet,
CommandInvocationId commandInvocationId) |
| Modifier and Type | Method and Description |
|---|---|
Object |
acceptVisitor(InvocationContext ctx,
Visitor visitor)
Accept a visitor, and return the result of accepting this visitor.
|
boolean |
equals(Object o) |
byte |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
Long |
getLifespan() |
int |
hashCode() |
boolean |
isConditional()
Certain commands only work based on a certain condition or state of the cache.
|
boolean |
isMaxIdle()
Whether this remove expired was fired because of max idle
|
void |
readFrom(ObjectInput input)
Reads this instance from the stream written by
ReplicableCommand.writeTo(ObjectOutput). |
String |
toString() |
void |
writeTo(ObjectOutput output)
Writes this instance to the
ObjectOutput. |
fail, getInternalMetadata, getMetadata, getValue, getValueMatcher, isNonExistent, isReturnValueExpected, isSuccessful, loadType, nonExistant, setInternalMetadata, setMetadata, setValue, setValueMatchergetAffectedKeys, getCommandInvocationId, getKeyLockOwner, getKeysToLock, hasSkipLocking, hasZeroLockAcquisitiongetFlagsBitSet, getKey, getSegment, getTopologyId, printFlags, setFlagsBitSet, setKey, setTopologyIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetInternalMetadata, setInternalMetadataisWriteOnly, updateStatusFromRemoteResponsegetKeygetTopologyId, setTopologyIdaddFlag, addFlags, addFlags, getFlags, getFlagsBitSet, hasAllFlags, hasAnyFlag, hasFlag, setFlags, setFlagsBitSetextractSegment, getSegmentpublic static final int COMMAND_ID
public RemoveExpiredCommand()
public RemoveExpiredCommand(Object key, Object value, Long lifespan, boolean maxIdle, int segment, long flagBitSet, CommandInvocationId commandInvocationId)
public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommandacceptVisitor in interface VisitableCommandacceptVisitor in class RemoveCommandctx - invocation contextvisitor - visitor to acceptThrowable - in the event of problemspublic boolean isConditional()
WriteCommandConcurrentMap.putIfAbsent(Object, Object) only does anything if a condition is met, i.e., the entry in
question is not already present. This method tests whether the command in question is conditional or not.isConditional in interface WriteCommandisConditional in class RemoveCommandpublic byte getCommandId()
ReplicableCommandgetCommandId in interface ReplicableCommandgetCommandId in class RemoveCommandpublic String toString()
toString in class RemoveCommandpublic void writeTo(ObjectOutput output) throws IOException
ReplicableCommandObjectOutput.writeTo in interface ReplicableCommandwriteTo in class RemoveCommandoutput - the stream.IOException - if an error occurred during the I/O.public void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
ReplicableCommandReplicableCommand.writeTo(ObjectOutput).readFrom in interface ReplicableCommandreadFrom in class RemoveCommandinput - the stream to read.IOException - if an error occurred during the I/O.ClassNotFoundException - if it tries to load an undefined class.public boolean equals(Object o)
equals in class RemoveCommandpublic int hashCode()
hashCode in class RemoveCommandpublic boolean isMaxIdle()
public Long getLifespan()
Copyright © 2022 JBoss by Red Hat. All rights reserved.