Package io.datarouter.aws.sqs
Class BaseSqsNode<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>
- 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.write.QueueStorageWriter<PK,D>,io.datarouter.storage.node.op.raw.write.StorageWriter<PK,D>,io.datarouter.storage.node.type.physical.PhysicalNode<PK,D,F>,java.lang.Comparable<io.datarouter.storage.node.Node<PK,D,F>>
- Direct Known Subclasses:
SqsGroupNode,SqsNode
public abstract class BaseSqsNode<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 io.datarouter.storage.node.type.physical.base.BasePhysicalNode<PK,D,F>
implements io.datarouter.storage.node.op.raw.write.QueueStorageWriter<PK,D>
-
Nested Class Summary
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 Modifier and Type Field Description static longDEFAULT_VISIBILITY_TIMEOUT_MSstatic intMAX_BYTES_PER_MESSAGEstatic intMAX_BYTES_PER_PAYLOADstatic intMAX_MESSAGES_PER_BATCHstatic intMAX_TIMEOUT_SECONDSprotected SqsOpFactory<PK,D,F>sqsOpFactory -
Constructor Summary
Constructors Constructor Description BaseSqsNode(io.datarouter.storage.config.DatarouterProperties datarouterProperties, io.datarouter.httpclient.client.DatarouterService datarouterService, 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 voidack(io.datarouter.storage.queue.QueueMessageKey key, io.datarouter.storage.config.Config config)voidackMulti(java.util.Collection<io.datarouter.storage.queue.QueueMessageKey> keys, io.datarouter.storage.config.Config config)io.datarouter.util.lazy.Lazy<java.lang.String>getQueueUrl()Methods inherited from class io.datarouter.storage.node.type.physical.base.BasePhysicalNode
getChildNodes, getClientId, getClientIds, getClientType, getFieldInfo, getName, getPhysicalNodes, getPhysicalNodesForClient, toString, usesClientMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
MAX_MESSAGES_PER_BATCH
public static final int MAX_MESSAGES_PER_BATCH- See Also:
- Constant Field Values
-
MAX_TIMEOUT_SECONDS
public static final int MAX_TIMEOUT_SECONDS- See Also:
- Constant Field Values
-
MAX_BYTES_PER_MESSAGE
public static final int MAX_BYTES_PER_MESSAGE- See Also:
- Constant Field Values
-
MAX_BYTES_PER_PAYLOAD
public static final int MAX_BYTES_PER_PAYLOAD- See Also:
- Constant Field Values
-
DEFAULT_VISIBILITY_TIMEOUT_MS
public static final long DEFAULT_VISIBILITY_TIMEOUT_MS -
sqsOpFactory
-
-
Constructor Details
-
BaseSqsNode
public BaseSqsNode(io.datarouter.storage.config.DatarouterProperties datarouterProperties, io.datarouter.httpclient.client.DatarouterService datarouterService, io.datarouter.storage.node.NodeParams<PK,D,F> params, SqsClientType sqsClientType, SqsClientManager sqsClientManager, io.datarouter.storage.client.ClientId clientId)
-
-
Method Details
-
getQueueUrl
public io.datarouter.util.lazy.Lazy<java.lang.String> getQueueUrl() -
ack
public void ack(io.datarouter.storage.queue.QueueMessageKey key, io.datarouter.storage.config.Config config) -
ackMulti
public void ackMulti(java.util.Collection<io.datarouter.storage.queue.QueueMessageKey> keys, io.datarouter.storage.config.Config config)
-