Package org.ngengine.nostr4j.pool
Class NostrPoolAllAckPolicy
java.lang.Object
org.ngengine.nostr4j.pool.NostrPoolAllAckPolicy
- All Implemented Interfaces:
Function<List<org.ngengine.platform.AsyncTask<NostrMessageAck>>,
,NostrMessageAck.Status> NostrPoolAckPolicy
Consider a message acknowledged when all acks are received.
This is the strictest policy, ensuring that all relays have acknowledged the message.
If any ack is pending or fails, the overall status is pending or failure.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(List<org.ngengine.platform.AsyncTask<NostrMessageAck>> t) static NostrPoolAckPolicy
get()
-
Constructor Details
-
NostrPoolAllAckPolicy
public NostrPoolAllAckPolicy()
-
-
Method Details
-
get
-
apply
- Specified by:
apply
in interfaceFunction<List<org.ngengine.platform.AsyncTask<NostrMessageAck>>,
NostrMessageAck.Status>
-