summaryrefslogtreecommitdiffstats
path: root/jdisc_messagebus_service/src/main/java/com/yahoo/messagebus/shared/ServerSession.java
blob: b0bc853817881737a79c3306da97c13f07762d9e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.messagebus.shared;

import com.yahoo.jdisc.SharedResource;
import com.yahoo.messagebus.MessageHandler;
import com.yahoo.messagebus.Reply;

/**
 * @author <a href="mailto:simon@yahoo-inc.com">Simon Thoresen</a>
 */
public interface ServerSession extends SharedResource {

    public MessageHandler getMessageHandler();

    public void setMessageHandler(MessageHandler msgHandler);

    public void sendReply(Reply reply);

    public String connectionSpec();

    public String name();
}