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>,​V>

java.lang.Object
io.datarouter.aws.sqs.op.SqsOp<PK,​D,​F,​V>
All Implemented Interfaces:
java.util.concurrent.Callable<V>
Direct Known Subclasses:
BaseSqsPeekMultiOp, SqsAckMultiOp, SqsAckOp, SqsGroupPutMultiOp, SqsPutMultiOp, SqsPutOp

public abstract 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>,​V>
extends java.lang.Object
implements java.util.concurrent.Callable<V>
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected io.datarouter.model.serialize.StringDatabeanCodec codec  
    protected io.datarouter.storage.config.Config config  
    protected java.util.function.Supplier<D> databeanSupplier  
    protected F fielder  
    protected io.datarouter.storage.serialize.fieldcache.PhysicalDatabeanFieldInfo<PK,​D,​F> fieldInfo  
    protected java.lang.String queueUrl  
  • Constructor Summary

    Constructors 
    Constructor Description
    SqsOp​(io.datarouter.storage.config.Config config, BaseSqsNode<PK,​D,​F> sqsNode)  
  • Method Summary

    Modifier and Type Method Description
    V call()  
    protected abstract V run()  

    Methods inherited from class java.lang.Object

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

    • config

      protected final io.datarouter.storage.config.Config config
    • queueUrl

      protected final java.lang.String queueUrl
    • databeanSupplier

      protected final java.util.function.Supplier<D extends io.datarouter.model.databean.Databean<PK,​D>> databeanSupplier
    • fielder

      protected final F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK,​D> fielder
    • codec

      protected final io.datarouter.model.serialize.StringDatabeanCodec codec
    • fieldInfo

      protected final io.datarouter.storage.serialize.fieldcache.PhysicalDatabeanFieldInfo<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>> fieldInfo
  • Constructor Details

    • SqsOp

      public SqsOp​(io.datarouter.storage.config.Config config, BaseSqsNode<PK,​D,​F> sqsNode)
  • Method Details

    • call

      public V call()
      Specified by:
      call in interface java.util.concurrent.Callable<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>
    • run

      protected abstract V run()