@EventMeshSPI(eventMeshExtensionType=PROTOCOL)
public interface ProtocolAdaptor<T extends org.apache.eventmesh.common.protocol.ProtocolTransportObject>
All protocol stored in EventMesh is CloudEvent.
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.eventmesh.common.protocol.ProtocolTransportObject |
fromCloudEvent(io.cloudevents.CloudEvent cloudEvent)
Transform
CloudEvent to target protocol. |
java.lang.String |
getProtocolType()
Get protocol type.
|
java.util.List<io.cloudevents.CloudEvent> |
toBatchCloudEvent(T protocol)
transform protocol to
CloudEvent list. |
io.cloudevents.CloudEvent |
toCloudEvent(T protocol)
transform protocol to
CloudEvent. |
io.cloudevents.CloudEvent toCloudEvent(T protocol) throws ProtocolHandleException
CloudEvent.protocol - input protocolProtocolHandleExceptionjava.util.List<io.cloudevents.CloudEvent> toBatchCloudEvent(T protocol) throws ProtocolHandleException
CloudEvent list.protocol - input protocolProtocolHandleExceptionorg.apache.eventmesh.common.protocol.ProtocolTransportObject fromCloudEvent(io.cloudevents.CloudEvent cloudEvent)
throws ProtocolHandleException
CloudEvent to target protocol.cloudEvent - clout eventProtocolHandleExceptionjava.lang.String getProtocolType()