public class UnmanagedBaseActor<Message> extends Object
| Constructor and Description |
|---|
UnmanagedBaseActor(String name,
ActorConfig config,
RMQConnection connection,
com.fasterxml.jackson.databind.ObjectMapper mapper,
RetryStrategyFactory retryStrategyFactory,
Class<? extends Message> clazz,
MessageHandlingFunction<Message,Boolean> handlerFunction,
Function<Throwable,Boolean> errorCheckFunction) |
| Modifier and Type | Method and Description |
|---|---|
protected RMQConnection |
connection() |
protected com.fasterxml.jackson.databind.ObjectMapper |
mapper() |
void |
publish(Message message) |
void |
publish(Message message,
com.rabbitmq.client.AMQP.BasicProperties properties) |
void |
publishWithDelay(Message message,
long delayMilliseconds) |
void |
start() |
void |
stop() |
public UnmanagedBaseActor(String name, ActorConfig config, RMQConnection connection, com.fasterxml.jackson.databind.ObjectMapper mapper, RetryStrategyFactory retryStrategyFactory, Class<? extends Message> clazz, MessageHandlingFunction<Message,Boolean> handlerFunction, Function<Throwable,Boolean> errorCheckFunction)
public final void publishWithDelay(Message message, long delayMilliseconds) throws Exception
Exceptionpublic final void publish(Message message, com.rabbitmq.client.AMQP.BasicProperties properties) throws Exception
Exceptionprotected final RMQConnection connection() throws Exception
Exceptionprotected final com.fasterxml.jackson.databind.ObjectMapper mapper()
Copyright © 2016–2019. All rights reserved.