Class MatchingProducerTemplate
- java.lang.Object
-
- io.gridgo.core.support.template.impl.AbstractProducerTemplate
-
- io.gridgo.core.support.template.impl.MatchingProducerTemplate
-
- All Implemented Interfaces:
ProducerTemplate
public class MatchingProducerTemplate extends AbstractProducerTemplate
-
-
Constructor Summary
Constructors Constructor Description MatchingProducerTemplate(@NonNull java.util.function.BiPredicate<io.gridgo.connector.Connector,io.gridgo.framework.support.Message> predicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.joo.promise4j.Promise<io.gridgo.framework.support.Message,java.lang.Exception>
call(java.util.List<ConnectorAttachment> connectors, io.gridgo.framework.support.Message message)
protected boolean
match(ConnectorAttachment connector, io.gridgo.framework.support.Message message)
org.joo.promise4j.Promise<io.gridgo.framework.support.Message,java.lang.Exception>
sendWithAck(java.util.List<ConnectorAttachment> connectors, io.gridgo.framework.support.Message message)
-
Methods inherited from class io.gridgo.core.support.template.impl.AbstractProducerTemplate
call, call, convertJoinedResult, findConnectorWithCallSupport, isCallSupported, isSendWithAckSupported, send, send, sendWithAck
-
-
-
-
Method Detail
-
sendWithAck
public org.joo.promise4j.Promise<io.gridgo.framework.support.Message,java.lang.Exception> sendWithAck(java.util.List<ConnectorAttachment> connectors, io.gridgo.framework.support.Message message)
-
call
public org.joo.promise4j.Promise<io.gridgo.framework.support.Message,java.lang.Exception> call(java.util.List<ConnectorAttachment> connectors, io.gridgo.framework.support.Message message)
-
match
protected boolean match(ConnectorAttachment connector, io.gridgo.framework.support.Message message)
- Overrides:
match
in classAbstractProducerTemplate
-
-