public class MeshMessageProtocolAdaptor
extends java.lang.Object
implements org.apache.eventmesh.protocol.api.ProtocolAdaptor<org.apache.eventmesh.common.protocol.ProtocolTransportObject>
| 构造器和说明 |
|---|
MeshMessageProtocolAdaptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.eventmesh.common.protocol.ProtocolTransportObject |
fromCloudEvent(io.cloudevents.CloudEvent cloudEvent) |
java.lang.String |
getProtocolType() |
java.util.List<io.cloudevents.CloudEvent> |
toBatchCloudEvent(org.apache.eventmesh.common.protocol.ProtocolTransportObject protocol) |
io.cloudevents.CloudEvent |
toCloudEvent(org.apache.eventmesh.common.protocol.ProtocolTransportObject protocol) |
public io.cloudevents.CloudEvent toCloudEvent(org.apache.eventmesh.common.protocol.ProtocolTransportObject protocol)
throws org.apache.eventmesh.protocol.api.exception.ProtocolHandleException
toCloudEvent 在接口中 org.apache.eventmesh.protocol.api.ProtocolAdaptor<org.apache.eventmesh.common.protocol.ProtocolTransportObject>org.apache.eventmesh.protocol.api.exception.ProtocolHandleExceptionpublic java.util.List<io.cloudevents.CloudEvent> toBatchCloudEvent(org.apache.eventmesh.common.protocol.ProtocolTransportObject protocol)
throws org.apache.eventmesh.protocol.api.exception.ProtocolHandleException
toBatchCloudEvent 在接口中 org.apache.eventmesh.protocol.api.ProtocolAdaptor<org.apache.eventmesh.common.protocol.ProtocolTransportObject>org.apache.eventmesh.protocol.api.exception.ProtocolHandleExceptionpublic org.apache.eventmesh.common.protocol.ProtocolTransportObject fromCloudEvent(io.cloudevents.CloudEvent cloudEvent)
throws org.apache.eventmesh.protocol.api.exception.ProtocolHandleException
fromCloudEvent 在接口中 org.apache.eventmesh.protocol.api.ProtocolAdaptor<org.apache.eventmesh.common.protocol.ProtocolTransportObject>org.apache.eventmesh.protocol.api.exception.ProtocolHandleExceptionpublic java.lang.String getProtocolType()
getProtocolType 在接口中 org.apache.eventmesh.protocol.api.ProtocolAdaptor<org.apache.eventmesh.common.protocol.ProtocolTransportObject>