public class Mailer extends org.nustaq.kontraktor.Actor<Mailer>
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG_MAIL |
__cbQueue, __clientConnection, __connections, __currentDispatcher, __mailbox, __mailboxCapacity, __mbCapacity, __publishTarget, __remoteId, __scheduler, __self, __stopped, __ticketMachine, connection, sender, userData, zzRoutingGCEnabled, zzServerMsgCallback| Constructor and Description |
|---|
Mailer() |
| Modifier and Type | Method and Description |
|---|---|
static String |
applyTemplate(String templateFileRelativeToTemplateDir,
Map<String,Object> data,
BiFunction<String,Object,String> mapFun) |
static Mailer |
get() |
void |
init(MailCfg conf,
String publicUrl) |
static void |
initSingleton(MailCfg settings,
String publicUrl) |
org.nustaq.kontraktor.IPromise<Boolean> |
sendChannelMail(String channel,
String receiver,
String subject,
String content) |
org.nustaq.kontraktor.IPromise<Boolean> |
sendDefaultMail(String receiver,
String subject,
String content) |
org.nustaq.kontraktor.IPromise<Boolean> |
sendEMail(String receiver,
String subject,
String content,
String senderEmail,
String displayName) |
org.nustaq.kontraktor.IPromise<Boolean> |
sendTemplateChannelMail(String channel,
String receiver,
String subject,
String templateFile,
Map<String,Object> data) |
void |
updateSettings(MailCfg conf) |
__addDeadLetter, __addRemoteConnection, __addStopHandler, __dispatchRemoteCall, __enqueueCall, __getCachedMethod, __removeRemoteConnection, __stop, __stopImpl, __submit, ask, askMsg, asyncstop, checkThread, close, closeCurrentClient, current, cyclic, debounce, delayed, execInThreadPool, execute, getActor, getActorRef, getCallbackSize, getConnections, getCurrentDispatcher, getFactory, getMailboxSize, getQSizes, getReport, getScheduler, getSubMonitorables, getUntypedRef, hasStopped, inside, inThread, isCallbackQPressured, isEmpty, isMailboxPressured, isProxy, isPublished, isRemote, isStopped, ping, router$clientPing, self, serialOn, setServerMsgCallback, stop, stopSafeClose, tell, tellMsg, unpublish, zzkrouterLostClient, zzRoutingRefGCAddDeadLetter, all, all, all, allMapped, AsActor, AsActor, AsActor, AsActor, AsUntypedActor, awaitAll, awaitAll, awaitAll, awaitAll, complete, complete, DeadLetters, flow, InThread, isComplete, isCont, isError, isErrorOrComplete, isResult, isTimeout, promise, race, race, reject, resolve, resolve, stream, SubmitDelayed, yield, yield, yieldCallbackspublic static Mailer get()
public void updateSettings(MailCfg conf)
public static String applyTemplate(String templateFileRelativeToTemplateDir, Map<String,Object> data, BiFunction<String,Object,String> mapFun) throws IOException
IOExceptionpublic org.nustaq.kontraktor.IPromise<Boolean> sendEMail(String receiver, String subject, String content, String senderEmail, String displayName)
receiver - - the mail receiversubject - - subject of the mailcontent - - mail contentsenderEmail - - email adress from senderdisplayName - - display name shown instead of the sender email ..public org.nustaq.kontraktor.IPromise<Boolean> sendDefaultMail(String receiver, String subject, String content)
receiver - - the mail receiversubject - - subject of the mailcontent - - mail contentpublic org.nustaq.kontraktor.IPromise<Boolean> sendChannelMail(String channel, String receiver, String subject, String content)
Copyright © 2019. All rights reserved.