ServiceInstanceListener Class
- java.
lang. Object - microsoft.
servicefabric. services. communication. runtime. ServiceInstanceListener
- microsoft.
public class ServiceInstanceListener
Represents the communication listener and its properties for a Stateless Service Instance. Endpoints given out by the communication listener are associated with name of the communication listener.
Field Summary
Modifier and Type | Field and Description |
---|---|
final String |
defaultName
The default name used when the ServiceInstanceListener is not given a name. |
Constructor Summary
Constructor | Description | |
---|---|---|
ServiceInstanceListener(Function<StatelessServiceContext, CommunicationListener> createCommunicationListener) | ||
ServiceInstanceListener(Function<StatelessServiceContext, CommunicationListener> createCommunicationListener, String name) |
Creates the ServiceInstanceListener |
Method Summary
Modifier and Type | Method and Description |
---|---|
Function<Stateless |
getCommunicationListenerFactory()
Factory method for creating the communication listener. |
String |
getName()
Name of the communication listener. |
Field Details
defaultName
public static final String defaultName= ""
The default name used when the ServiceInstanceListener is not given a name.
Constructor Details
ServiceInstanceListener
public ServiceInstanceListener(Function
Parameters:
ServiceInstanceListener
public ServiceInstanceListener(Function
Creates the ServiceInstanceListener
Parameters:
Method Details
getCommunicationListenerFactory
public Function
Factory method for creating the communication listener.
Returns:
getName
public String getName()
Name of the communication listener.
Returns:
Applies to
Azure SDK for Java