Class BaseSqsPeekMultiOp<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>,​F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK,​D>,​T>

java.lang.Object
io.datarouter.aws.sqs.op.SqsOp<PK,​D,​F,​java.util.List<T>>
io.datarouter.aws.sqs.op.BaseSqsPeekMultiOp<PK,​D,​F,​T>
All Implemented Interfaces:
java.util.concurrent.Callable<java.util.List<T>>
Direct Known Subclasses:
SqsGroupPeekMultiOp, SqsPeekMultiOp

public abstract class BaseSqsPeekMultiOp<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>,​F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK,​D>,​T>
extends SqsOp<PK,​D,​F,​java.util.List<T>>
  • Field Summary

    Fields inherited from class io.datarouter.aws.sqs.op.SqsOp

    codec, config, databeanSupplier, fielder, fieldInfo, queueUrl
  • Constructor Summary

    Constructors 
    Constructor Description
    BaseSqsPeekMultiOp​(io.datarouter.storage.config.Config config, BaseSqsNode<PK,​D,​F> sqsNode, SqsClientManager sqsClientManager, io.datarouter.storage.client.ClientId clientId)  
  • Method Summary

    Modifier and Type Method Description
    protected abstract java.util.List<T> extractDatabeans​(java.util.List<com.amazonaws.services.sqs.model.Message> messages)  
    protected java.util.List<T> run()  

    Methods inherited from class io.datarouter.aws.sqs.op.SqsOp

    call

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • run

      protected final java.util.List<T> run()
      Specified by:
      run in class SqsOp<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>,​F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK,​D>,​java.util.List<T>>
    • extractDatabeans

      protected abstract java.util.List<T> extractDatabeans​(java.util.List<com.amazonaws.services.sqs.model.Message> messages)