202203204205206207208209210
} @Override public SizeCommand buildSizeCommand() { if (cachedSizeCommand == null) { cachedSizeCommand = new SizeCommand(dataContainer); } return cachedSizeCommand; }
186187188189190191192
return new ReplaceCommand(key, oldValue, newValue, notifier, metadata, flags, configuration.dataContainer().valueEquivalence()); } @Override public SizeCommand buildSizeCommand(Set<Flag> flags) { return new SizeCommand(dataContainer, flags); }
188189190191192193194195
RemoveCommand command = commandsFactory.buildRemoveCommand(key, value, ctx.getFlags()); return (Boolean) invoker.invoke(ctx, command); } public final int size() { SizeCommand command = commandsFactory.buildSizeCommand(); return (Integer) invoker.invoke(getInvocationContext(false), command); }
242243244245246247248249250
public final int size() { return size(null, null); } final int size(EnumSet<Flag> explicitFlags, ClassLoader explicitClassLoader) { SizeCommand command = commandsFactory.buildSizeCommand(); return (Integer) invoker.invoke(getInvocationContextForRead( null, explicitClassLoader, UNBOUNDED), command); }
346347348349350351352353
public final int size() { return size(null, null); } final int size(EnumSet<Flag> explicitFlags, ClassLoader explicitClassLoader) { SizeCommand command = commandsFactory.buildSizeCommand(explicitFlags); return (Integer) invoker.invoke(getInvocationContextForRead(explicitClassLoader, UNBOUNDED), command); }
216217218219220221222
230231232233234235236237238
210211212213214215216217
164165166167168169170171172
return new ReplaceCommand(key, oldValue, newValue, lifespan, maxIdleTimeMillis, flags); } public SizeCommand buildSizeCommand() { if (cachedSizeCommand == null) { cachedSizeCommand = new SizeCommand(dataContainer); } return cachedSizeCommand; }