Uses of Record Class
cloud.opencode.base.email.Email
Packages that use Email
Package
Description
-
Uses of Email in cloud.opencode.base.email
Methods in cloud.opencode.base.email that return EmailModifier and TypeMethodDescriptionEmail.Builder.build()Build the email 构建邮件BatchSendResult.ItemResult.email()Returns the value of theemailrecord component.Methods in cloud.opencode.base.email with parameters of type EmailModifier and TypeMethodDescriptionstatic BatchSendResult.ItemResultCreate a failure result 创建失败结果static voidSend email 发送邮件static CompletableFuture<Void> Send email asynchronously 异步发送邮件static CompletableFuture<Void> OpenEmail.sendAsync(Email email, BiConsumer<Email, Throwable> callback) Send email asynchronously with callback 使用回调异步发送邮件static SendResultOpenEmail.sendWithResult(Email email) Send email and return result with message ID 发送邮件并返回包含消息ID的结果static BatchSendResult.ItemResultCreate a success result 创建成功结果Method parameters in cloud.opencode.base.email with type arguments of type EmailModifier and TypeMethodDescriptionstatic CompletableFuture<Void> OpenEmail.sendAllAndWait(List<Email> emails) Send multiple emails and wait for completion 发送多封邮件并等待完成static List<CompletableFuture<Void>> OpenEmail.sendAllAsync(List<Email> emails) Send multiple emails asynchronously 异步发送多封邮件static CompletableFuture<Void> OpenEmail.sendAsync(Email email, BiConsumer<Email, Throwable> callback) Send email asynchronously with callback 使用回调异步发送邮件static BatchSendResultSend multiple emails using a single SMTP connection (batch mode) 使用单个SMTP连接批量发送邮件Constructors in cloud.opencode.base.email with parameters of type EmailModifierConstructorDescriptionItemResult(Email email, String messageId, boolean success, String error, Throwable cause) Creates an instance of aItemResultrecord class. -
Uses of Email in cloud.opencode.base.email.exception
Methods in cloud.opencode.base.email.exception that return EmailModifier and TypeMethodDescriptionEmailException.getEmail()Get the related email (if available) 获取相关邮件(如果可用)Constructors in cloud.opencode.base.email.exception with parameters of type EmailModifierConstructorDescriptionEmailException(String message, Throwable cause, Email email, EmailErrorCode errorCode) Create exception with all parameters 使用所有参数创建异常EmailSendException(String message, Email email, EmailErrorCode errorCode) Create send exception with email and error code 使用邮件和错误码创建发送异常EmailSendException(String message, Throwable cause, Email email, EmailErrorCode errorCode) Create send exception with all parameters 使用所有参数创建发送异常 -
Uses of Email in cloud.opencode.base.email.retry
Methods in cloud.opencode.base.email.retry with parameters of type EmailModifier and TypeMethodDescriptionvoidEmailRetryExecutor.executeWithRetry(Email email, cloud.opencode.base.email.internal.EmailSender sender) Execute email sending with retry 执行带重试的邮件发送voidEmailRetryExecutor.executeWithRetry(Email email, cloud.opencode.base.email.internal.EmailSender sender, EmailRetryExecutor.RetryCallback retryCallback) Execute email sending with retry and callback 执行带重试和回调的邮件发送 -
Uses of Email in cloud.opencode.base.email.sender
Methods in cloud.opencode.base.email.sender with parameters of type EmailModifier and TypeMethodDescriptionvoidvoidSend email asynchronously 异步发送邮件AsyncEmailSender.sendAsync(Email email, BiConsumer<Email, Throwable> callback) Send email asynchronously with callback 使用回调异步发送邮件SmtpEmailSender.sendWithResult(Email email) Method parameters in cloud.opencode.base.email.sender with type arguments of type EmailModifier and TypeMethodDescriptionAsyncEmailSender.sendAllAndWait(List<Email> emails) Send multiple emails and wait for all to complete 发送多封邮件并等待全部完成AsyncEmailSender.sendAllAsync(List<Email> emails) Send multiple emails asynchronously 异步发送多封邮件AsyncEmailSender.sendAsync(Email email, BiConsumer<Email, Throwable> callback) Send email asynchronously with callback 使用回调异步发送邮件Send multiple emails using a single SMTP connection 使用单个SMTP连接发送多封邮件 -
Uses of Email in cloud.opencode.base.email.testing
Methods in cloud.opencode.base.email.testing that return EmailModifier and TypeMethodDescriptionInMemoryEmailSender.getLastEmail()Get the last sent email 获取最后一封已发送邮件Methods in cloud.opencode.base.email.testing that return types with arguments of type EmailModifier and TypeMethodDescriptionFind emails matching a predicate 查找匹配谓词的邮件InMemoryEmailSender.findByRecipient(String recipient) Find emails sent to a specific recipient 查找发送到特定收件人的邮件InMemoryEmailSender.findBySubject(String subjectPart) Find emails by subject (contains match) 按主题查找邮件(包含匹配)InMemoryEmailSender.getSentEmails()Get all sent emails 获取所有已发送邮件Methods in cloud.opencode.base.email.testing with parameters of type EmailMethod parameters in cloud.opencode.base.email.testing with type arguments of type EmailModifier and TypeMethodDescriptionFind emails matching a predicate 查找匹配谓词的邮件voidInMemoryEmailSender.simulateFailure(Predicate<Email> failureSimulator) Set failure simulator - emails matching the predicate will throw an exception 设置失败模拟器 - 匹配谓词的邮件将抛出异常