Class UpStreamMsgContext
- java.lang.Object
-
- org.apache.eventmesh.runtime.core.protocol.tcp.client.session.retry.RetryContext
-
- org.apache.eventmesh.runtime.core.protocol.tcp.client.session.send.UpStreamMsgContext
-
- All Implemented Interfaces:
java.lang.Comparable<java.util.concurrent.Delayed>,java.util.concurrent.Delayed
public class UpStreamMsgContext extends RetryContext
-
-
Field Summary
-
Fields inherited from class org.apache.eventmesh.runtime.core.protocol.tcp.client.session.retry.RetryContext
event, executeTime, retryTimes, seq
-
-
Constructor Summary
Constructors Constructor Description UpStreamMsgContext(Session session, io.cloudevents.CloudEvent event, org.apache.eventmesh.common.protocol.tcp.Header header, long startTime, long taskExecuteTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.eventmesh.api.SendCallbackcreateSendCallback(org.apache.eventmesh.common.protocol.tcp.Command replyCmd, long taskExecuteTime, io.cloudevents.CloudEvent event, UpStreamMsgContext retryContext)longgetCreateTime()io.cloudevents.CloudEventgetEvent()SessiongetSession()voidretry()java.lang.StringtoString()-
Methods inherited from class org.apache.eventmesh.runtime.core.protocol.tcp.client.session.retry.RetryContext
compareTo, delay, getDelay
-
-
-
-
Constructor Detail
-
UpStreamMsgContext
public UpStreamMsgContext(Session session, io.cloudevents.CloudEvent event, org.apache.eventmesh.common.protocol.tcp.Header header, long startTime, long taskExecuteTime)
-
-
Method Detail
-
getSession
public Session getSession()
-
getEvent
public io.cloudevents.CloudEvent getEvent()
-
getCreateTime
public long getCreateTime()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
retry
public void retry()
- Specified by:
retryin classRetryContext
-
createSendCallback
protected org.apache.eventmesh.api.SendCallback createSendCallback(org.apache.eventmesh.common.protocol.tcp.Command replyCmd, long taskExecuteTime, io.cloudevents.CloudEvent event, UpStreamMsgContext retryContext)
-
-