229230231232233234235236237
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, explicitFlags, explicitClassLoader, UNBOUNDED), command); }
135136137138139140141142143
return new ReplaceCommand(key, oldValue, newValue, lifespan, maxIdleTimeMillis); } public SizeCommand buildSizeCommand() { if (cachedSizeCommand == null) { cachedSizeCommand = new SizeCommand(dataContainer); } return cachedSizeCommand; }
161162163164165166167168
RemoveCommand command = commandsFactory.buildRemoveCommand(key, value); return (Boolean) invoker.invoke(ctx, command); } public final int size() { SizeCommand command = commandsFactory.buildSizeCommand(); return (Integer) invoker.invoke(icc.createNonTxInvocationContext(), command); }
209210211212213214215216217
} @Override public SizeCommand buildSizeCommand() { if (cachedSizeCommand == null) { cachedSizeCommand = new SizeCommand(dataContainer); } return cachedSizeCommand; }
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); }
171172173174175176177178179
return new ReplaceCommand(key, oldValue, newValue, lifespan, maxIdleTimeMillis, flags); } public SizeCommand buildSizeCommand() { if (cachedSizeCommand == null) { cachedSizeCommand = new SizeCommand(dataContainer); } return cachedSizeCommand; }
204205206207208209210
return new ReplaceCommand(key, oldValue, newValue, notifier, metadata, flags, configuration.dataContainer().valueEquivalence()); } @Override public SizeCommand buildSizeCommand(Set<Flag> flags) { return new SizeCommand(dataContainer, flags); }
342343344345346347348349
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); }