Class ApplyBatch

  • All Implemented Interfaces:
    com.lexmark.saperion.remote.common.operations.Operation<java.util.ArrayList<java.io.Serializable>,​SaBasicException,​LegacyConnection>, java.io.Serializable

    public class ApplyBatch
    extends LegacyOperation<java.util.ArrayList<java.io.Serializable>>
    Invokes a list of commands one after another. Collects the results in a list. The return value of the invoke() method will be an instance of ArrayList<Serializable>.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ApplyBatch​(com.lexmark.saperion.remote.common.operations.Operation<? extends java.io.Serializable,​SaBasicException,​LegacyConnection>... batch)
      Creates an instance of ApplyBatch that will invoke the given operations in the given order.
      ApplyBatch​(java.util.List<com.lexmark.saperion.remote.common.operations.Operation<? extends java.io.Serializable,​SaBasicException,​LegacyConnection>> batch)
      Creates an instance of ApplyBatch that will invoke the given operations in the given order.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterInvoke​(java.lang.Object result, LegacyConnection connection)  
      java.util.ArrayList<java.io.Serializable> invoke()  
      • Methods inherited from class com.lexmark.saperion.remote.common.operations.AbstractOperation

        getResult, toArrayList, toCaseInsensitiveMap, toHashMap, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.lexmark.saperion.remote.common.operations.Operation

        audit, dispatchEvent, isAuditable, isEventDispatcher
    • Constructor Detail

      • ApplyBatch

        public ApplyBatch​(java.util.List<com.lexmark.saperion.remote.common.operations.Operation<? extends java.io.Serializable,​SaBasicException,​LegacyConnection>> batch)
        Creates an instance of ApplyBatch that will invoke the given operations in the given order.
        Parameters:
        batch - The operations in the order to invoke
      • ApplyBatch

        public ApplyBatch​(com.lexmark.saperion.remote.common.operations.Operation<? extends java.io.Serializable,​SaBasicException,​LegacyConnection>... batch)
        Creates an instance of ApplyBatch that will invoke the given operations in the given order.
        Parameters:
        batch - The operations in the order to invoke
    • Method Detail

      • afterInvoke

        public void afterInvoke​(java.lang.Object result,
                                LegacyConnection connection)
        Specified by:
        afterInvoke in interface com.lexmark.saperion.remote.common.operations.Operation<java.util.ArrayList<java.io.Serializable>,​SaBasicException,​LegacyConnection>
        Overrides:
        afterInvoke in class com.lexmark.saperion.remote.common.operations.AbstractOperation<java.util.ArrayList<java.io.Serializable>,​SaBasicException,​LegacyConnection>