Class MailProtocol
java.lang.Object
org.openremote.agent.protocol.AbstractProtocol<T,V>
org.openremote.agent.protocol.mail.AbstractMailProtocol<MailAgent,MailProtocol,MailAgentLink>
org.openremote.agent.protocol.mail.MailProtocol
- All Implemented Interfaces:
org.openremote.model.asset.agent.Protocol<MailAgent>
-
Field Summary
FieldsFields inherited from class org.openremote.agent.protocol.mail.AbstractMailProtocol
attributeMessageProcessorMap, INITIAL_CHECK_DELAY_SECONDS, LOG, mailClient
Fields inherited from class org.openremote.agent.protocol.AbstractProtocol
agent, assetService, datapointService, dynamicAttributes, executorService, linkedAttributes, messageBrokerContext, predictedDatapointService, processorLock, producerTemplate, scheduledExecutorService, timerService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Predicate<org.openremote.model.mail.MailMessage>
getAttributeMailMessageFilter
(String assetId, org.openremote.model.attribute.Attribute<?> attribute, MailAgentLink agentLink) static <T extends MailAgentLink>
Predicate<org.openremote.model.mail.MailMessage>getAttributeMailMessageFilter
(org.openremote.container.timer.TimerService timerService, T agentLink) protected String
getMailMessageAttributeValue
(String assetId, org.openremote.model.attribute.Attribute<?> attribute, MailAgentLink agentLink, org.openremote.model.mail.MailMessage mailMessage) Get a URI that describes this specific protocol instanceGet the name for this protocolMethods inherited from class org.openremote.agent.protocol.mail.AbstractMailProtocol
doLinkAttribute, doLinkedAttributeWrite, doStart, doStop, doUnlinkAttribute, onConnectionEvent, onMailMessage
Methods inherited from class org.openremote.agent.protocol.AbstractProtocol
getAgent, getLinkedAttributes, linkAttribute, onAgentAttributeChanged, processLinkedAttributeWrite, sendAttributeEvent, sendAttributeEvent, setAssetService, setConnectionStatus, start, stop, toString, unlinkAttribute, updateLinkedAttribute, updateLinkedAttribute
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.openremote.model.asset.agent.Protocol
prefixLogMessage
-
Field Details
-
PROTOCOL_DISPLAY_NAME
- See Also:
-
-
Constructor Details
-
MailProtocol
-
-
Method Details
-
getProtocolName
Description copied from interface:org.openremote.model.asset.agent.Protocol
Get the name for this protocol -
getProtocolInstanceUri
Description copied from interface:org.openremote.model.asset.agent.Protocol
Get a URI that describes this specific protocol instance -
getMailMessageAttributeValue
protected String getMailMessageAttributeValue(String assetId, org.openremote.model.attribute.Attribute<?> attribute, MailAgentLink agentLink, org.openremote.model.mail.MailMessage mailMessage) - Specified by:
getMailMessageAttributeValue
in classAbstractMailProtocol<MailAgent,
MailProtocol, MailAgentLink>
-
getAttributeMailMessageFilter
protected Predicate<org.openremote.model.mail.MailMessage> getAttributeMailMessageFilter(String assetId, org.openremote.model.attribute.Attribute<?> attribute, MailAgentLink agentLink) - Specified by:
getAttributeMailMessageFilter
in classAbstractMailProtocol<MailAgent,
MailProtocol, MailAgentLink>
-
getAttributeMailMessageFilter
public static <T extends MailAgentLink> Predicate<org.openremote.model.mail.MailMessage> getAttributeMailMessageFilter(org.openremote.container.timer.TimerService timerService, T agentLink)
-