@SuppressWarnings("unchecked") public Command optimize(final Command currentCommand, final Queue writeQueue, final Queue<Command> executingCmds, int sendBufferSize) { Command optimiezeCommand = currentCommand; optimiezeCommand = this.optimiezeGet(writeQueue, executingCmds, optimiezeCommand); optimiezeCommand = this.optimiezeSet(writeQueue, executingCmds, optimiezeCommand, sendBufferSize); optimiezeCommand = this.optimiezeMergeBuffer(optimiezeCommand, writeQueue, executingCmds, sendBufferSize); return optimiezeCommand; }
@SuppressWarnings("unchecked") public Command optimize(final Command currentCommand, final Queue writeQueue, final Queue<Command> executingCmds, int sendBufferSize) { Command optimiezeCommand = currentCommand; optimiezeCommand = this.optimiezeGet(writeQueue, executingCmds, optimiezeCommand); optimiezeCommand = this.optimiezeSet(writeQueue, executingCmds, optimiezeCommand, sendBufferSize); optimiezeCommand = this.optimiezeMergeBuffer(optimiezeCommand, writeQueue, executingCmds, sendBufferSize); return optimiezeCommand; }