blob: c05f4a41d930f6211c2919c528e8f871417d65d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.messagebus.network.local;
import com.yahoo.messagebus.network.ServiceAddress;
/**
* @author Simon Thoresen Hult
*/
public class LocalServiceAddress implements ServiceAddress {
private final LocalNetwork network;
private final String sessionName;
public LocalServiceAddress(final String serviceName, final LocalNetwork network) {
this.network = network;
this.sessionName = serviceName.substring(serviceName.lastIndexOf('/') + 1);
}
public LocalNetwork getNetwork() {
return network;
}
public String getSessionName() {
return sessionName;
}
}
|