All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dingtalk.open.app.stream.network.api.Context Maven / Gradle / Ivy

There is a newer version: 1.3.7
Show newest version
package com.dingtalk.open.app.stream.network.api;

import com.dingtalk.open.app.stream.protocol.ProtocolRequestFacade;

/**
 * @author feiyin
 * @date 2022/12/28
 */
public interface Context {
    /**
     * 响应
     *
     * @param payload
     */
    void replay(Object payload);

    /**
     * 异常
     *
     * @param t
     */
    void exception(Throwable t);

    /**
     * 回话id
     *
     * @return
     */
    String connectionId();

    /**
     * 获取请求
     *
     * @return
     */
    ProtocolRequestFacade getRequest();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy