public class TopologyChange extends Object
Topology changes can be acted upon by registering a TopologyChangeListener
.
TopologyChangeListener
Modifier and Type | Class and Description |
---|---|
static class |
TopologyChange.HandlerSubscription
The handler subscription of a
TopologyChange . |
static class |
TopologyChange.Type
The enumeration referencing the possible
TopologyChange types. |
Constructor and Description |
---|
TopologyChange(TopologyChange.Type type,
String context,
String clientId,
String clientStreamId,
String componentName,
TopologyChange.HandlerSubscription handlerSubscription)
Constructs a
TopologyChange based on the give type , context , clientId ,
clientStreamId , componentName , and handler . |
TopologyChange(io.axoniq.axonserver.grpc.control.TopologyChange change)
Constructs a
TopologyChange based on the given gRPC change . |
Modifier and Type | Method and Description |
---|---|
String |
clientId()
Returns the
client identifier for which a TopologyChange
occurred. |
String |
clientStreamId()
Returns the client stream identifier for which a
TopologyChange occurred. |
String |
componentName()
Returns the
component name for which a TopologyChange
occurred. |
String |
context()
Returns the
context for which a TopologyChange occurred. |
boolean |
equals(Object o) |
TopologyChange.HandlerSubscription |
handler()
Returns the
HandlerSubscription for which a TopologyChange occurred. |
int |
hashCode() |
String |
toString() |
TopologyChange.Type |
type()
Returns the
Type of the TopologyChange . |
public TopologyChange(TopologyChange.Type type, String context, String clientId, String clientStreamId, String componentName, TopologyChange.HandlerSubscription handlerSubscription)
TopologyChange
based on the give type
, context
, clientId
,
clientStreamId
, componentName
, and handler
.type
- The type of the TopologyChange
.context
- The context
for which a
TopologyChange
occurred.clientId
- The client identifier
for which a
TopologyChange
occurred.clientStreamId
- The client stream identifier for which a TopologyChange
occurred.componentName
- The component name
for which a
TopologyChange
occurred.handlerSubscription
- The TopologyChange.HandlerSubscription
for which a TopologyChange
occurred. Should be
null
for the Type RESET
.public TopologyChange(io.axoniq.axonserver.grpc.control.TopologyChange change)
TopologyChange
based on the given gRPC change
.change
- The gRPC TopologyChange
to construct an Axon Framework TopologyChange
from.public TopologyChange.Type type()
Type
of the TopologyChange
.Type
of the TopologyChange
.public String context()
context
for which a TopologyChange
occurred.context
for which a TopologyChange
occurred.public String clientId()
client identifier
for which a TopologyChange
occurred.client identifier
for which a TopologyChange
occurred.public String clientStreamId()
TopologyChange
occurred.TopologyChange
occurred.public String componentName()
component name
for which a TopologyChange
occurred.component name
for which a TopologyChange
occurred.public TopologyChange.HandlerSubscription handler()
HandlerSubscription
for which a TopologyChange
occurred.
Is null
when type()
returns TopologyChange.Type.RESET
.
HandlerSubscription
for which a TopologyChange
occurred.Copyright © 2010–2025. All rights reserved.