Class SqsBlobNode

java.lang.Object
io.datarouter.storage.node.BaseNode<PK,D,F>
io.datarouter.storage.node.type.physical.base.BasePhysicalNode<io.datarouter.storage.queue.BlobQueueMessageKey,io.datarouter.storage.queue.BlobQueueMessage,io.datarouter.storage.queue.BlobQueueMessage.BlobQueueMessageFielder>
io.datarouter.aws.sqs.blob.SqsBlobNode
All Implemented Interfaces:
io.datarouter.storage.node.Node<io.datarouter.storage.queue.BlobQueueMessageKey,io.datarouter.storage.queue.BlobQueueMessage,io.datarouter.storage.queue.BlobQueueMessage.BlobQueueMessageFielder>, io.datarouter.storage.node.op.raw.BlobQueueStorage, io.datarouter.storage.node.op.raw.BlobQueueStorage.BlobQueueStorageNode, io.datarouter.storage.node.op.raw.BlobQueueStorage.PhysicalBlobQueueStorageNode, io.datarouter.storage.node.type.physical.PhysicalNode<io.datarouter.storage.queue.BlobQueueMessageKey,io.datarouter.storage.queue.BlobQueueMessage,io.datarouter.storage.queue.BlobQueueMessage.BlobQueueMessageFielder>, Comparable<io.datarouter.storage.node.Node<io.datarouter.storage.queue.BlobQueueMessageKey,io.datarouter.storage.queue.BlobQueueMessage,io.datarouter.storage.queue.BlobQueueMessage.BlobQueueMessageFielder>>

public class SqsBlobNode extends io.datarouter.storage.node.type.physical.base.BasePhysicalNode<io.datarouter.storage.queue.BlobQueueMessageKey,io.datarouter.storage.queue.BlobQueueMessage,io.datarouter.storage.queue.BlobQueueMessage.BlobQueueMessageFielder> implements io.datarouter.storage.node.op.raw.BlobQueueStorage.PhysicalBlobQueueStorageNode
  • Nested Class Summary

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

    io.datarouter.storage.node.op.raw.BlobQueueStorage.BlobQueueStorageNode, io.datarouter.storage.node.op.raw.BlobQueueStorage.PhysicalBlobQueueStorageNode
  • Field Summary

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

    OP_ack, OP_getMaxDataSize, OP_peek, OP_poll, OP_put
  • Constructor Summary

    Constructors
    Constructor
    Description
    SqsBlobNode(io.datarouter.storage.node.NodeParams<io.datarouter.storage.queue.BlobQueueMessageKey,io.datarouter.storage.queue.BlobQueueMessage,io.datarouter.storage.queue.BlobQueueMessage.BlobQueueMessageFielder> params, io.datarouter.storage.client.ClientType<?,?> clientType, SqsClientManager sqsClientManager, io.datarouter.storage.config.properties.EnvironmentName environmentName, io.datarouter.storage.config.properties.ServiceName serviceName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    ack(byte[] handle, io.datarouter.storage.config.Config config)
     
    buildQueueName(String environmentName, String serviceName)
     
    int
     
    Supplier<io.datarouter.util.tuple.Twin<String>>
     
    Optional<io.datarouter.storage.queue.BlobQueueMessageDto>
    peek(io.datarouter.storage.config.Config config)
     
    void
    put(byte[] data, io.datarouter.storage.config.Config config)
     

    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 io.datarouter.storage.node.op.raw.BlobQueueStorage

    ack, ack, ack, peek, poll, poll, put

    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
  • Constructor Details

    • SqsBlobNode

      public SqsBlobNode(io.datarouter.storage.node.NodeParams<io.datarouter.storage.queue.BlobQueueMessageKey,io.datarouter.storage.queue.BlobQueueMessage,io.datarouter.storage.queue.BlobQueueMessage.BlobQueueMessageFielder> params, io.datarouter.storage.client.ClientType<?,?> clientType, SqsClientManager sqsClientManager, io.datarouter.storage.config.properties.EnvironmentName environmentName, io.datarouter.storage.config.properties.ServiceName serviceName)
  • Method Details

    • buildQueueName

      public String buildQueueName(String environmentName, String serviceName)
    • getQueueUrlAndName

      public Supplier<io.datarouter.util.tuple.Twin<String>> getQueueUrlAndName()
    • getMaxDataSize

      public int getMaxDataSize()
      Specified by:
      getMaxDataSize in interface io.datarouter.storage.node.op.raw.BlobQueueStorage
    • put

      public void put(byte[] data, io.datarouter.storage.config.Config config)
      Specified by:
      put in interface io.datarouter.storage.node.op.raw.BlobQueueStorage
    • peek

      public Optional<io.datarouter.storage.queue.BlobQueueMessageDto> peek(io.datarouter.storage.config.Config config)
      Specified by:
      peek in interface io.datarouter.storage.node.op.raw.BlobQueueStorage
    • ack

      public void ack(byte[] handle, io.datarouter.storage.config.Config config)
      Specified by:
      ack in interface io.datarouter.storage.node.op.raw.BlobQueueStorage