Class LMPOP
java.lang.Object
org.infinispan.server.resp.RespCommand
org.infinispan.server.resp.commands.list.LMPOP
- All Implemented Interfaces:
Resp3Command
Pops one or more elements from the first non-empty list key from the list of provided key names.
Elements are popped from either the left or right of the first non-empty list based on
the passed argument. The number of returned elements is limited to the lower between the
non-empty list's length, and the count argument (which defaults to 1).
Returns array reply, specifically:
- null when no element could be popped.
- A two-element array with the first element being the name of the key from which elements were popped, and the second element is an array of elements.
- Since:
- 15.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte[]static final byte[]static final byte[]Fields inherited from class org.infinispan.server.resp.RespCommand
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionperform(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, List<byte[]> arguments) Methods inherited from class org.infinispan.server.resp.RespCommand
extractKeys, fromByteBuf, getArity, getFirstKeyPos, getLastKeyPos, getName, getSteps, handleException, hasValidNumberOfArguments, match, size, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.server.resp.commands.Resp3Command
handleException
-
Field Details
-
COUNT
public static final byte[] COUNT -
LEFT
public static final byte[] LEFT -
RIGHT
public static final byte[] RIGHT
-
-
Constructor Details
-
LMPOP
public LMPOP()
-
-
Method Details
-
perform
public CompletionStage<RespRequestHandler> perform(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, List<byte[]> arguments) - Specified by:
performin interfaceResp3Command
-