Interface IDiscoveryAgent
Inherited Members
Apache.NMS.IStartable.Start()
Apache.NMS.IStartable.IsStarted
Apache.NMS.IStoppable.Stop()
Namespace: Apache.NMS.ActiveMQ.Transport.Discovery
Assembly: Apache.NMS.ActiveMQ.dll
Syntax
public interface IDiscoveryAgent : IStartable, IStoppable
Properties
| Improve this Doc View SourceServiceAdd
Gets or sets the service add event handler
Declaration
ServiceAddHandler ServiceAdd { get; set; }
Property Value
Type | Description |
---|---|
ServiceAddHandler |
ServiceRemove
Gets or sets the service remove event handler.
Declaration
ServiceRemoveHandler ServiceRemove { get; set; }
Property Value
Type | Description |
---|---|
ServiceRemoveHandler |
Methods
| Improve this Doc View SourceRegisterService(String)
Registers the service with the given name.
Declaration
void RegisterService(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
ServiceFailed(DiscoveryEvent)
A process actively using a service may see it go down before the DiscoveryAgent notices the service's failure. That process can use this method to notify the IDiscoveryAgent of the failure so that other listeners of this IDiscoveryAgent can also be made aware of the failure.
Declaration
void ServiceFailed(DiscoveryEvent failedEvent)
Parameters
Type | Name | Description |
---|---|---|
DiscoveryEvent | failedEvent |