Class SqsNode<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.lang.Object
io.datarouter.storage.node.BaseNode<PK,D,F>
io.datarouter.storage.node.type.physical.base.BasePhysicalNode<PK,D,F>
io.datarouter.aws.sqs.BaseSqsNode<PK,D,F>
io.datarouter.aws.sqs.single.SqsNode<PK,D,F>
All Implemented Interfaces:
io.datarouter.storage.node.Node<PK,D,F>, io.datarouter.storage.node.op.NodeOps<PK,D>, io.datarouter.storage.node.op.raw.QueueStorage<PK,D>, io.datarouter.storage.node.op.raw.QueueStorage.PhysicalQueueStorageNode<PK,D,F>, io.datarouter.storage.node.op.raw.QueueStorage.QueueStorageNode<PK,D,F>, io.datarouter.storage.node.op.raw.read.QueueStorageReader<PK,D>, io.datarouter.storage.node.op.raw.write.QueueStorageWriter<PK,D>, io.datarouter.storage.node.op.raw.write.QueueStorageWriter.PhysicalQueueStorageWriterNode<PK,D,F>, io.datarouter.storage.node.op.raw.write.QueueStorageWriter.QueueStorageWriterNode<PK,D,F>, io.datarouter.storage.node.op.raw.write.StorageWriter<PK,D>, io.datarouter.storage.node.op.raw.write.StorageWriter.StorageWriterNode<PK,D,F>, io.datarouter.storage.node.type.physical.PhysicalNode<PK,D,F>, Comparable<io.datarouter.storage.node.Node<PK,D,F>>

public class SqsNode<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>> extends BaseSqsNode<PK,D,F> implements io.datarouter.storage.node.op.raw.QueueStorage.PhysicalQueueStorageNode<PK,D,F>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.datarouter.storage.node.op.raw.QueueStorage

    io.datarouter.storage.node.op.raw.QueueStorage.PhysicalQueueStorageNode<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>>, io.datarouter.storage.node.op.raw.QueueStorage.QueueStorageNode<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>>

    Nested classes/interfaces inherited from interface io.datarouter.storage.node.op.raw.write.QueueStorageWriter

    io.datarouter.storage.node.op.raw.write.QueueStorageWriter.PhysicalQueueStorageWriterNode<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>>, io.datarouter.storage.node.op.raw.write.QueueStorageWriter.QueueStorageWriterNode<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>>

    Nested classes/interfaces inherited from interface io.datarouter.storage.node.op.raw.write.StorageWriter

    io.datarouter.storage.node.op.raw.write.StorageWriter.StorageWriterNode<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>>
  • Field Summary

    Fields inherited from interface io.datarouter.storage.node.op.raw.QueueStorage

    OP_poll, OP_pollMulti, OP_pollUntilEmpty

    Fields inherited from interface io.datarouter.storage.node.op.raw.read.QueueStorageReader

    OP_peek, OP_peekMulti, OP_peekUntilEmpty

    Fields inherited from interface io.datarouter.storage.node.op.raw.write.QueueStorageWriter

    OP_ack, OP_ackMulti

    Fields inherited from interface io.datarouter.storage.node.op.raw.write.StorageWriter

    OP_put, OP_putMulti
  • Constructor Summary

    Constructors
    Constructor
    Description
    SqsNode(io.datarouter.storage.config.properties.EnvironmentName environmentName, io.datarouter.storage.config.properties.ServiceName serviceName, io.datarouter.storage.node.NodeParams<PK,D,F> params, SqsClientType sqsClientType, SqsClientManager sqsClientManager, io.datarouter.storage.client.ClientId clientId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.datarouter.storage.queue.QueueMessage<PK,D>
    peek(io.datarouter.storage.config.Config config)
     
    List<io.datarouter.storage.queue.QueueMessage<PK,D>>
    peekMulti(io.datarouter.storage.config.Config config)
     
    io.datarouter.scanner.Scanner<io.datarouter.storage.queue.QueueMessage<PK,D>>
    peekUntilEmpty(io.datarouter.storage.config.Config config)
     
    poll(io.datarouter.storage.config.Config config)
     
    pollMulti(io.datarouter.storage.config.Config config)
     
    io.datarouter.scanner.Scanner<D>
    pollUntilEmpty(io.datarouter.storage.config.Config config)
     
    void
    put(D databean, io.datarouter.storage.config.Config config)
     
    void
    putMulti(Collection<D> databeans, io.datarouter.storage.config.Config config)
     

    Methods inherited from class io.datarouter.aws.sqs.BaseSqsNode

    ack, ackMulti, buildNamespace, buildQueueName, getQueueUrlAndName, isOwned

    Methods inherited from class io.datarouter.storage.node.type.physical.base.BasePhysicalNode

    getChildNodes, getClientId, getClientIds, getClientType, getFieldInfo, getName, getPhysicalNodes, getPhysicalNodesForClient, toString, usesClient

    Methods inherited from class io.datarouter.storage.node.BaseNode

    compareTo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface io.datarouter.storage.node.Node

    getChildNodes, getClientIds, getName, getPhysicalNodes, getPhysicalNodesForClient, usesClient

    Methods inherited from interface io.datarouter.storage.node.type.physical.PhysicalNode

    getClientId, getClientType, getFieldInfo

    Methods inherited from interface io.datarouter.storage.node.op.raw.QueueStorage

    poll, pollMulti, pollUntilEmpty

    Methods inherited from interface io.datarouter.storage.node.op.raw.read.QueueStorageReader

    peek, peekMulti, peekUntilEmpty

    Methods inherited from interface io.datarouter.storage.node.op.raw.write.QueueStorageWriter

    ack, ack, ackMulti, ackMulti

    Methods inherited from interface io.datarouter.storage.node.op.raw.write.StorageWriter

    put, putMulti
  • Constructor Details

    • SqsNode

      public SqsNode(io.datarouter.storage.config.properties.EnvironmentName environmentName, io.datarouter.storage.config.properties.ServiceName serviceName, io.datarouter.storage.node.NodeParams<PK,D,F> params, SqsClientType sqsClientType, SqsClientManager sqsClientManager, io.datarouter.storage.client.ClientId clientId)
  • Method Details

    • peek

      public io.datarouter.storage.queue.QueueMessage<PK,D> peek(io.datarouter.storage.config.Config config)
      Specified by:
      peek in interface io.datarouter.storage.node.op.raw.read.QueueStorageReader<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>>
    • peekMulti

      public List<io.datarouter.storage.queue.QueueMessage<PK,D>> peekMulti(io.datarouter.storage.config.Config config)
      Specified by:
      peekMulti in interface io.datarouter.storage.node.op.raw.read.QueueStorageReader<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>>
    • peekUntilEmpty

      public io.datarouter.scanner.Scanner<io.datarouter.storage.queue.QueueMessage<PK,D>> peekUntilEmpty(io.datarouter.storage.config.Config config)
      Specified by:
      peekUntilEmpty in interface io.datarouter.storage.node.op.raw.read.QueueStorageReader<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>>
    • put

      public void put(D databean, io.datarouter.storage.config.Config config)
      Specified by:
      put in interface io.datarouter.storage.node.op.raw.write.StorageWriter<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>>
    • putMulti

      public void putMulti(Collection<D> databeans, io.datarouter.storage.config.Config config)
      Specified by:
      putMulti in interface io.datarouter.storage.node.op.raw.write.StorageWriter<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>>
    • poll

      public D poll(io.datarouter.storage.config.Config config)
      Specified by:
      poll in interface io.datarouter.storage.node.op.raw.QueueStorage<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>>
    • pollMulti

      public List<D> pollMulti(io.datarouter.storage.config.Config config)
      Specified by:
      pollMulti in interface io.datarouter.storage.node.op.raw.QueueStorage<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>>
    • pollUntilEmpty

      public io.datarouter.scanner.Scanner<D> pollUntilEmpty(io.datarouter.storage.config.Config config)
      Specified by:
      pollUntilEmpty in interface io.datarouter.storage.node.op.raw.QueueStorage<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>>