Uses of Record Class
cloud.opencode.base.email.ReceivedEmail
Packages that use ReceivedEmail
Package
Description
-
Uses of ReceivedEmail in cloud.opencode.base.email
Methods in cloud.opencode.base.email that return ReceivedEmailModifier and TypeMethodDescriptionReceivedEmail.Builder.build()static ReceivedEmailOpenEmail.receiveById(String messageId) Receive email by message ID 通过消息ID接收邮件Methods in cloud.opencode.base.email that return types with arguments of type ReceivedEmailModifier and TypeMethodDescriptionstatic List<ReceivedEmail> OpenEmail.receive(EmailQuery query) Receive emails with query 使用查询接收邮件static List<ReceivedEmail> OpenEmail.receiveAll()Receive all emails from default folder 从默认文件夹接收所有邮件static CompletableFuture<List<ReceivedEmail>> OpenEmail.receiveAsync(EmailQuery query) Receive emails asynchronously with query 使用查询异步接收邮件static CompletableFuture<List<ReceivedEmail>> OpenEmail.receiveAsync(EmailQuery query, BiConsumer<List<ReceivedEmail>, Throwable> callback) Receive emails asynchronously with callback 使用回调异步接收邮件static List<ReceivedEmail> OpenEmail.receiveUnread()Receive unread emails from default folder 从默认文件夹接收未读邮件static CompletableFuture<List<ReceivedEmail>> OpenEmail.receiveUnreadAsync()Receive unread emails asynchronously 异步接收未读邮件Method parameters in cloud.opencode.base.email with type arguments of type ReceivedEmailModifier and TypeMethodDescriptionstatic CompletableFuture<List<ReceivedEmail>> OpenEmail.receiveAsync(EmailQuery query, BiConsumer<List<ReceivedEmail>, Throwable> callback) Receive emails asynchronously with callback 使用回调异步接收邮件 -
Uses of ReceivedEmail in cloud.opencode.base.email.exception
Methods in cloud.opencode.base.email.exception that return ReceivedEmailModifier and TypeMethodDescriptionEmailReceiveException.getReceivedEmail()Get the partially received email (if available) 获取部分接收的邮件(如果可用)Constructors in cloud.opencode.base.email.exception with parameters of type ReceivedEmailModifierConstructorDescriptionEmailReceiveException(String message, Throwable cause, EmailErrorCode errorCode, String folder, String messageId, ReceivedEmail receivedEmail) Create receive exception with full context 使用完整上下文创建接收异常 -
Uses of ReceivedEmail in cloud.opencode.base.email.listener
Methods in cloud.opencode.base.email.listener with parameters of type ReceivedEmailModifier and TypeMethodDescriptionvoidEmailListener.onNewEmail(ReceivedEmail email) Called when a new email is received 收到新邮件时调用Method parameters in cloud.opencode.base.email.listener with type arguments of type ReceivedEmailModifier and TypeMethodDescriptionstatic EmailListenerEmailListener.of(Consumer<ReceivedEmail> emailHandler, Consumer<Throwable> errorHandler) Create a listener that handles both new emails and errors 创建处理新邮件和错误的监听器EmailIdleMonitor.Builder.onNewEmail(Consumer<ReceivedEmail> handler) Add a simple new email handler 添加简单的新邮件处理器static EmailListenerEmailListener.onNewEmail(Consumer<ReceivedEmail> handler) Create a simple listener that only handles new emails 创建仅处理新邮件的简单监听器 -
Uses of ReceivedEmail in cloud.opencode.base.email.receiver
Methods in cloud.opencode.base.email.receiver that return ReceivedEmailModifier and TypeMethodDescriptionImapEmailReceiver.receiveById(String messageId) Pop3EmailReceiver.receiveById(String messageId) Methods in cloud.opencode.base.email.receiver that return types with arguments of type ReceivedEmailModifier and TypeMethodDescriptionImapEmailReceiver.receive(EmailQuery query) Pop3EmailReceiver.receive(EmailQuery query) AsyncEmailReceiver.receiveAllAsync()Receive all emails asynchronously 异步接收所有邮件AsyncEmailReceiver.receiveAsync(EmailQuery query) Receive emails asynchronously with query 使用查询异步接收邮件AsyncEmailReceiver.receiveAsync(EmailQuery query, BiConsumer<List<ReceivedEmail>, Throwable> callback) Receive emails asynchronously with callback 使用回调异步接收邮件AsyncEmailReceiver.receiveByIdAsync(String messageId) Receive email by ID asynchronously 异步通过ID接收邮件ImapEmailReceiver.receiveUnread()Pop3EmailReceiver.receiveUnread()AsyncEmailReceiver.receiveUnreadAsync()Receive unread emails asynchronously 异步接收未读邮件Method parameters in cloud.opencode.base.email.receiver with type arguments of type ReceivedEmailModifier and TypeMethodDescriptionAsyncEmailReceiver.receiveAsync(EmailQuery query, BiConsumer<List<ReceivedEmail>, Throwable> callback) Receive emails asynchronously with callback 使用回调异步接收邮件